diff --git a/lib/execjs/ruby_racer_runtime.rb b/lib/execjs/ruby_racer_runtime.rb index fab327e..879e8bb 100644 --- a/lib/execjs/ruby_racer_runtime.rb +++ b/lib/execjs/ruby_racer_runtime.rb @@ -31,7 +31,7 @@ module ExecJS if e.value["name"] == "SyntaxError" raise RuntimeError, e.message else - raise ProgramError, e.message + raise ProgramError, e.value.to_s end end end