You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert_raises(RangeError){context.eval("new Date(NaN)")}# should not crash process
270
268
end
@@ -893,11 +891,14 @@ def test_wasm_ref
893
891
end
894
892
context=MiniRacer::Context.new
895
893
expected={}
896
-
actual=context.eval("
894
+
actual=
895
+
context.eval(
896
+
"
897
897
var b = [0,97,115,109,1,0,0,0,1,26,5,80,0,95,0,80,0,95,1,127,0,96,0,1,110,96,1,100,2,1,111,96,0,1,100,3,3,4,3,3,2,4,7,26,2,12,99,114,101,97,116,101,83,116,114,117,99,116,0,1,7,114,101,102,70,117,110,99,0,2,9,5,1,3,0,1,0,10,23,3,8,0,32,0,20,2,251,27,11,7,0,65,12,251,0,1,11,4,0,210,0,11,0,44,4,110,97,109,101,1,37,3,0,11,101,120,112,111,114,116,101,100,65,110,121,1,12,99,114,101,97,116,101,83,116,114,117,99,116,2,7,114,101,102,70,117,110,99]
898
898
var o = new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array(b))).exports
899
899
o.refFunc()(o.createStruct) // exotic object
900
-
")
900
+
"
901
+
)
901
902
assert_equalexpected,actual
902
903
end
903
904
@@ -923,7 +924,7 @@ def test_proxy_support
923
924
924
925
deftest_proxy_uncloneable
925
926
context=MiniRacer::Context.new()
926
-
expected={"x"=>42}
927
+
expected={"x"=>42}
927
928
assert_equalexpected,context.eval(<<~JS)
928
929
const o = {x: 42}
929
930
const p = new Proxy(o, {})
@@ -1031,9 +1032,7 @@ def test_forking
1031
1032
skip"TruffleRuby forking is not supported"
1032
1033
else
1033
1034
`bundle exec ruby test/test_forking.rb`
1034
-
if $?.exitstatus != 0
1035
-
assertfalse,"forking test failed"
1036
-
end
1035
+
assertfalse,"forking test failed"if $?.exitstatus != 0
0 commit comments