Преглед изворни кода

Finishing the "global var is used"

Previously, the change was made to different copy
of this file. :-(
Herby Vojčík пре 6 година
родитељ
комит
3ca2205986
1 измењених фајлова са 1 додато и 3 уклоњено
  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;