1
0
Pārlūkot izejas kodu

Finishing the "global var is used"

Previously, the change was made to different copy
of this file. :-(
Herby Vojčík 6 gadi atpakaļ
vecāks
revīzija
3ca2205986
1 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  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;