@@ -239,16 +239,22 @@ def test_node_global_is_undefined
239
239
240
240
def test_node_process_is_undefined
241
241
assert ExecJS . eval ( "typeof process == 'undefined'" )
242
+ refute ExecJS . eval ( "'process' in this" )
242
243
end
243
244
244
245
def test_commonjs_vars_are_undefined
245
246
assert ExecJS . eval ( "typeof module == 'undefined'" )
246
247
assert ExecJS . eval ( "typeof exports == 'undefined'" )
247
248
assert ExecJS . eval ( "typeof require == 'undefined'" )
249
+
250
+ refute ExecJS . eval ( "'module' in this" )
251
+ refute ExecJS . eval ( "'exports' in this" )
252
+ refute ExecJS . eval ( "'require' in this" )
248
253
end
249
254
250
255
def test_console_is_undefined
251
256
assert ExecJS . eval ( "typeof console == 'undefined'" )
257
+ refute ExecJS . eval ( "'console' in this" )
252
258
end
253
259
254
260
def test_timers_are_undefined
@@ -258,6 +264,13 @@ def test_timers_are_undefined
258
264
assert ExecJS . eval ( "typeof clearInterval == 'undefined'" )
259
265
assert ExecJS . eval ( "typeof setImmediate == 'undefined'" )
260
266
assert ExecJS . eval ( "typeof clearImmediate == 'undefined'" )
267
+
268
+ refute ExecJS . eval ( "'setTimeout' in this" )
269
+ refute ExecJS . eval ( "'setInterval' in this" )
270
+ refute ExecJS . eval ( "'clearTimeout' in this" )
271
+ refute ExecJS . eval ( "'clearInterval' in this" )
272
+ refute ExecJS . eval ( "'setImmediate' in this" )
273
+ refute ExecJS . eval ( "'clearImmediate' in this" )
261
274
end
262
275
263
276
def test_compile_large_scripts
0 commit comments