Skip to content

Commit a6f6a6c

Browse files
committed
RubyRacer: Force expression in Context#call
1 parent 58a6c49 commit a6f6a6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/execjs/ruby_racer_runtime.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def eval(source, options = {})
4242
def call(properties, *args)
4343
lock do
4444
begin
45-
unbox @v8_context.eval(properties).call(*args)
45+
unbox @v8_context.eval("(#{properties})").call(*args)
4646
rescue ::V8::JSError => e
4747
raise wrap_error(e)
4848
end

0 commit comments

Comments
 (0)