Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(362)

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/verifier/ConstantVerifier.java

Issue 17603005: Report CONST_EVAL_THROWS_IDBZE when VM will throw IntegerDivisionByZeroException (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/verifier/ConstantVerifier.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/verifier/ConstantVerifier.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/verifier/ConstantVerifier.java
index 8c1dc258312eb5a312d698f1c3d6bf35ca23443a..1073c353d6eba6feeb65da8039280527b056bc72 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/verifier/ConstantVerifier.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/verifier/ConstantVerifier.java
@@ -237,6 +237,7 @@ public class ConstantVerifier extends RecursiveASTVisitor<Void> {
for (ErrorResult.ErrorData data : ((ErrorResult) result).getErrorData()) {
ErrorCode dataErrorCode = data.getErrorCode();
if (dataErrorCode == CompileTimeErrorCode.CONST_EVAL_THROWS_EXCEPTION
+ || dataErrorCode == CompileTimeErrorCode.CONST_EVAL_THROWS_IDBZE
|| dataErrorCode == CompileTimeErrorCode.CONST_EVAL_TYPE_BOOL_NUM_STRING
|| dataErrorCode == CompileTimeErrorCode.CONST_EVAL_TYPE_BOOL
|| dataErrorCode == CompileTimeErrorCode.CONST_EVAL_TYPE_INT

Powered by Google App Engine
This is Rietveld 408576698