From a6f6a6cf25f9625bda58e2e5c526ad920eb96184 Mon Sep 17 00:00:00 2001 From: Magnus Holm Date: Sat, 2 Jun 2018 22:02:08 +0200 Subject: [PATCH] RubyRacer: Force expression in Context#call --- lib/execjs/ruby_racer_runtime.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/execjs/ruby_racer_runtime.rb b/lib/execjs/ruby_racer_runtime.rb index cf8e1a2..682efd5 100644 --- a/lib/execjs/ruby_racer_runtime.rb +++ b/lib/execjs/ruby_racer_runtime.rb @@ -42,7 +42,7 @@ module ExecJS def call(properties, *args) lock do begin - unbox @v8_context.eval(properties).call(*args) + unbox @v8_context.eval("(#{properties})").call(*args) rescue ::V8::JSError => e raise wrap_error(e) end