diff --git a/lib/execjs/external_runtime.rb b/lib/execjs/external_runtime.rb index 8e49a25..798d809 100644 --- a/lib/execjs/external_runtime.rb +++ b/lib/execjs/external_runtime.rb @@ -78,7 +78,7 @@ def extract_result(output, filename) .sub(filename, "(execjs)") .strip end - stack.reject! { |line| ["eval code", "eval@[native code]"].include?(line) } + stack.reject! { |line| ["eval code", "eval code@", "eval@[native code]"].include?(line) } stack.shift unless stack[0].to_s.include?("(execjs)") error_class = value =~ /SyntaxError:/ ? RuntimeError : ProgramError error = error_class.new(value)