]> khamidou — GitHub mirrors - electron.git/commitdiff
Don't expose "global" when node integration is off
authorCheng Zhao <zcbenz@gmail.com>
Tue, 14 Jul 2015 15:38:54 +0000 (08:38 -0700)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 14 Jul 2015 16:15:03 +0000 (09:15 -0700)
atom/renderer/lib/init.coffee

index 196891554dd98514bd968aa0c4a06604c4e63387..32d3ee76d1b90e7d631c74e575e2b5e1cd5b7c79 100644 (file)
@@ -93,6 +93,7 @@ else
     delete global.process
     delete global.setImmediate
     delete global.clearImmediate
+    delete global.global
 
 # Load the script specfied by the "preload" attribute.
 if preloadScript