Browse Source

Simplify SmalltalkMethodContext constructor.

Herbert Vojčík 7 years ago
parent
commit
ba1d56a8e4
1 changed files with 2 additions and 4 deletions
  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;