diff --git a/tests/src/test/java/org/mozilla/javascript/tests/Test262SuiteTest.java b/tests/src/test/java/org/mozilla/javascript/tests/Test262SuiteTest.java index c7e3e792a2..5e02c56a95 100644 --- a/tests/src/test/java/org/mozilla/javascript/tests/Test262SuiteTest.java +++ b/tests/src/test/java/org/mozilla/javascript/tests/Test262SuiteTest.java @@ -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";