Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions test/mini_racer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1089,8 +1089,12 @@ def test_regexp_string_iterator

def test_function_property
context = MiniRacer::Context.new
# regrettably loses the non-function properties
expected = {"error" => "Error: f() {} could not be cloned."}
if RUBY_ENGINE == "truffleruby"
expected = {"x" => 42}
else
# regrettably loses the non-function properties
expected = {"error" => "Error: f() {} could not be cloned."}
end
assert_equal expected, context.eval("({ x: 42, f() {} })")
end

Expand Down
Loading