Browse Source

Finishing the "global var is used"

Previously, the change was made to different copy
of this file. :-(
Herby Vojčík 6 years ago
parent
commit
3ca2205986
1 changed files with 1 additions and 3 deletions
  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;