JS backend: report parser errors and warnings
This commit is contained in:
+5
-12
@@ -15,16 +15,9 @@
|
||||
*/
|
||||
package com.google.gwt.dev.js;
|
||||
|
||||
// An unchecked wrapper exception to interop with Rhino.
|
||||
class UncheckedJsParserException extends RuntimeException {
|
||||
|
||||
private final JsParserException parserException;
|
||||
|
||||
public UncheckedJsParserException(JsParserException parserException) {
|
||||
this.parserException = parserException;
|
||||
}
|
||||
|
||||
public JsParserException getParserException() {
|
||||
return parserException;
|
||||
}
|
||||
/**
|
||||
* Used only to exit parser on error
|
||||
*/
|
||||
public class AbortParsingException extends RuntimeException {
|
||||
public AbortParsingException() {}
|
||||
}
|
||||
@@ -79,9 +79,6 @@ public class JsParser {
|
||||
popScope();
|
||||
return stmts;
|
||||
}
|
||||
catch (UncheckedJsParserException e) {
|
||||
throw e.getParserException();
|
||||
}
|
||||
finally {
|
||||
Context.exit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user