瀏覽代碼

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;