diff --git a/test/test_execjs.rb b/test/test_execjs.rb index f963c10..20b8a53 100644 --- a/test/test_execjs.rb +++ b/test/test_execjs.rb @@ -220,6 +220,10 @@ class TestExecJS < Test assert_equal true, ExecJS.exec("return this === (function() {return this})()") end + def test_browser_self_is_undefined + assert ExecJS.eval("typeof self == 'undefined'") + end + def test_node_global_is_undefined assert ExecJS.eval("typeof global == 'undefined'") end