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

test_call_with_this: Skip on Rhino

This is a known bug in Ruby Rhino
This commit is contained in:
Magnus Holm 2018-06-06 14:34:19 +02:00
parent a6f6a6cf25
commit 412b1e8d7c

View file

@ -57,6 +57,9 @@ class TestExecJS < Test
end end
def test_call_with_this def test_call_with_this
# Known bug: https://github.com/cowboyd/therubyrhino/issues/39
skip if ExecJS.runtime.is_a?(ExecJS::RubyRhinoRuntime)
# Make sure that `this` is indeed the global scope # Make sure that `this` is indeed the global scope
context = ExecJS.compile(<<-EOF) context = ExecJS.compile(<<-EOF)
name = 123; name = 123;