Closed
Description
Would love to prevent the 'catch' and forward them out to ruby if possible.
def test_catch_rb
context = MiniRacer::Context.new(timeout: 50)
context.attach('crash', proc{ raise ArgumentError.new('???') })
code = "function a() { \
try { \
crash(); \
} catch(e) { return e; } \
}\
a();"
assert_raises(ArgumentError) do
context.eval(code)
end
end
Metadata
Metadata
Assignees
Labels
No labels