Skip to content

Commit

Permalink
Revert "[DEBUG]Check for TypeError during parsing"
Browse files Browse the repository at this point in the history
This reverts commit dea0e8d6f73fdf2d34e92ae93d6d037d35965fc9.
  • Loading branch information
tuchida authored and gbrail committed Jul 21, 2024
1 parent 4ff1fec commit 46fa711
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -538,12 +538,6 @@ private Scriptable buildScope(Context cx, Test262Case testCase, int optLevel)

private static String extractJSErrorName(RhinoException ex) {
if (ex instanceof EvaluatorException) {
// See. DefaultErrorReporter#error
String message = ex.details();
if (message.startsWith("TypeError:")) {
return "TypeError";
}

// there's no universal format to EvaluatorException's
// for now, just assume that it's a SyntaxError
return "SyntaxError";
Expand Down

0 comments on commit 46fa711

Please sign in to comment.