فهرست منبع

fillBlock() takes the args and locals as arguments

Nicolas Petton 11 سال پیش
والد
کامیت
e689c26b17
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  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;
 };