Skip to content

Commit

Permalink
Merge pull request #124 from amatsuda/macos_ci_fix
Browse files Browse the repository at this point in the history
Skip `eval code@` line thrown by Apple JavaScriptCore
  • Loading branch information
amatsuda committed Jun 1, 2023
2 parents 5fd5de4 + a0d234c commit 368dd04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/execjs/external_runtime.rb
Expand Up @@ -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)
Expand Down

0 comments on commit 368dd04

Please sign in to comment.