1
0
Fork 0
mirror of https://github.com/rails/execjs synced 2023-03-27 23:21:20 -04:00

Test browser self is also undefined

This commit is contained in:
Joshua Peek 2015-02-03 13:49:13 -08:00
parent 1bf999b0fd
commit 59e0d04b51

View file

@ -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