1
0
Fork 0
mirror of https://github.com/rails/execjs synced 2023-03-27 23:21:20 -04:00

RubyRacer: Force expression in Context#call

This commit is contained in:
Magnus Holm 2018-06-02 22:02:08 +02:00
parent 58a6c49a66
commit a6f6a6cf25

View file

@ -42,7 +42,7 @@ module ExecJS
def call(properties, *args) def call(properties, *args)
lock do lock do
begin begin
unbox @v8_context.eval(properties).call(*args) unbox @v8_context.eval("(#{properties})").call(*args)
rescue ::V8::JSError => e rescue ::V8::JSError => e
raise wrap_error(e) raise wrap_error(e)
end end