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

Unified Diff: pkg/compiler/lib/src/compile_time_constants.dart

Issue 1167713002: Fix crash in deferred_constraint_constants_test. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/compile_time_constants.dart
diff --git a/pkg/compiler/lib/src/compile_time_constants.dart b/pkg/compiler/lib/src/compile_time_constants.dart
index b739ce5deb6ab38a1ee6e412c14e48d63354edd6..f5876d8d495fc08127bbaec7def20f9fc9333615 100644
--- a/pkg/compiler/lib/src/compile_time_constants.dart
+++ b/pkg/compiler/lib/src/compile_time_constants.dart
@@ -982,7 +982,7 @@ class CompileTimeConstantEvaluator extends Visitor<AstConstant> {
error(node, message);
return new AstConstant(
- null, node, new NullConstantExpression(new NullConstantValue()));
+ null, node, new ErroneousConstantExpression());
}
// Else we don't need to do anything. The final handler is only
// optimistically trying to compile constants. So it is normal that we
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698