Explorar o código

Simplify SmalltalkMethodContext constructor.

Herbert Vojčík %!s(int64=7) %!d(string=hai) anos
pai
achega
ba1d56a8e4
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  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;