浏览代码

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;