We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c72a63f commit 48edb0eCopy full SHA for 48edb0e
test/mini_racer_test.rb
@@ -1089,8 +1089,12 @@ def test_regexp_string_iterator
1089
1090
def test_function_property
1091
context = MiniRacer::Context.new
1092
- # regrettably loses the non-function properties
1093
- expected = {"error" => "Error: f() {} could not be cloned."}
+ if RUBY_ENGINE == "truffleruby"
+ expected = {"x" => 42}
1094
+ else
1095
+ # regrettably loses the non-function properties
1096
+ expected = {"error" => "Error: f() {} could not be cloned."}
1097
+ end
1098
assert_equal expected, context.eval("({ x: 42, f() {} })")
1099
end
1100
0 commit comments