1
0
Fork 0
mirror of https://github.com/rails/execjs synced 2023-03-27 23:21:20 -04:00
This commit is contained in:
Benoit Daloze 2020-11-22 16:22:12 +01:00
parent 642fd306be
commit 3bc074ae1f

View file

@ -156,7 +156,7 @@ class TestExecJS < Test
assert_output value, ExecJS.eval("#{json_value}") assert_output value, ExecJS.eval("#{json_value}")
end end
define_method("test_strinigfy_value_#{index}") do define_method("test_stringify_value_#{index}") do
context = ExecJS.compile("function json(obj) { return JSON.stringify(obj); }") context = ExecJS.compile("function json(obj) { return JSON.stringify(obj); }")
assert_output json_value, context.call("json", value) assert_output json_value, context.call("json", value)
end end