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:
parent
58a6c49a66
commit
a6f6a6cf25
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue