Browse Source

fillBlock() takes the args and locals as arguments

Nicolas Petton 11 năm trước cách đây
mục cha
commit
e689c26b17
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      js/boot.js

+ 3 - 3
js/boot.js

@@ -741,11 +741,11 @@ SmalltalkMethodContext.prototype.fill = function(receiver, selector, args, local
     this.lookupClass = lookupClass;
 };
 
-SmalltalkMethodContext.prototype.fillBlock = function() {
+SmalltalkMethodContext.prototype.fillBlock = function(args, locals) {
     this.receiver    = null;
     this.selector    = null;
-    this.args        = [];
-    this.locals      = {};
+    this.args        = args || [];
+    this.locals      = locals || {};
     this.lookupClass = null;
 };