2
0
فهرست منبع

Simplify SmalltalkMethodContext constructor.

Herbert Vojčík 7 سال پیش
والد
کامیت
ba1d56a8e4
1فایلهای تغییر یافته به همراه2 افزوده شده و 4 حذف شده
  1. 2 4
      support/kernel-runtime.js

+ 2 - 4
support/kernel-runtime.js

@@ -263,13 +263,11 @@ define(function () {
         function SmalltalkMethodContext (home, setup) {
             this.sendIdx = {};
             this.homeContext = home;
-            this.setup = setup || function () {
-                };
-
-            this.supercall = false;
+            this.setup = setup;
         }
 
         // Fallbacks
+        SmalltalkMethodContext.prototype.supercall = false;
         SmalltalkMethodContext.prototype.locals = Object.freeze({});
         SmalltalkMethodContext.prototype.receiver = null;
         SmalltalkMethodContext.prototype.selector = null;