Skip to content

Commit 28158c1

Browse files
committed
squash! no checks if truffleruby
1 parent 615e7b9 commit 28158c1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/mini_racer_test.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,9 +1153,11 @@ def test_ruby_exception
11531153
context = MiniRacer::Context.new
11541154
context.attach("test", proc { raise "boom" })
11551155
actual = context.eval("try { test() } catch (e) { e }")
1156-
assert_equal(actual.class, MiniRacer::ScriptError)
1157-
assert_equal(actual.message, "boom")
1158-
assert_equal(actual.backtrace, ["JavaScript Error: boom", "JavaScript at <eval>:1:7"])
1156+
if RUBY_ENGINE != "truffleruby"
1157+
assert_equal(actual.class, MiniRacer::ScriptError)
1158+
assert_equal(actual.message, "boom")
1159+
assert_equal(actual.backtrace, ["JavaScript Error: boom", "JavaScript at <eval>:1:7"])
1160+
end
11591161
end
11601162

11611163
def test_large_integer

0 commit comments

Comments
 (0)