lib/execjs/external_runtime.rb in execjs-1.2.5 vs lib/execjs/external_runtime.rb in execjs-1.2.6

- old
+ new

@@ -57,10 +57,10 @@ def extract_result(output) status, value = output.empty? ? [] : MultiJson.decode(output) if status == "ok" value - elsif value == "SyntaxError: Parse error" + elsif value =~ /SyntaxError:/ raise RuntimeError, value else raise ProgramError, value end end