@@ -239,16 +239,22 @@ def test_node_global_is_undefined
239239
240240 def test_node_process_is_undefined
241241 assert ExecJS . eval ( "typeof process == 'undefined'" )
242+ refute ExecJS . eval ( "'process' in this" )
242243 end
243244
244245 def test_commonjs_vars_are_undefined
245246 assert ExecJS . eval ( "typeof module == 'undefined'" )
246247 assert ExecJS . eval ( "typeof exports == 'undefined'" )
247248 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" )
248253 end
249254
250255 def test_console_is_undefined
251256 assert ExecJS . eval ( "typeof console == 'undefined'" )
257+ refute ExecJS . eval ( "'console' in this" )
252258 end
253259
254260 def test_timers_are_undefined
@@ -258,6 +264,13 @@ def test_timers_are_undefined
258264 assert ExecJS . eval ( "typeof clearInterval == 'undefined'" )
259265 assert ExecJS . eval ( "typeof setImmediate == 'undefined'" )
260266 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" )
261274 end
262275
263276 def test_compile_large_scripts
0 commit comments