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:
parent
a6f6a6cf25
commit
412b1e8d7c
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue