Explorar el Código

Finishing the "global var is used"

Previously, the change was made to different copy
of this file. :-(
Herby Vojčík hace 6 años
padre
commit
3ca2205986
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      support/kernel-fundamentals.js

+ 1 - 3
support/kernel-fundamentals.js

@@ -53,9 +53,7 @@ define(function () {
     }
 
     function SmalltalkGlobalsBrik (brikz, st) {
-        // jshint evil:true
-        var jsGlobals = new Function("return this")();
-        var globals = Object.create(jsGlobals);
+        var globals = Object.create(global);
         globals.SmalltalkSettings = {};
 
         this.globals = globals;