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

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

Issue 1257513002: dart2js: fix crash when annotations have syntax errors (fix #23983) (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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 | pkg/compiler/lib/src/scanner/listener.dart » ('j') | 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 4b0be2dd57e82be760717401281eaf4ed4efc4c2..f5ec1ee877f9109ef3a0c0cff7af4aa6d5ac6f84 100644
--- a/pkg/compiler/lib/src/compile_time_constants.dart
+++ b/pkg/compiler/lib/src/compile_time_constants.dart
@@ -336,6 +336,8 @@ class CompileTimeConstantEvaluator extends Visitor<AstConstant> {
ConstantSystem get constantSystem => handler.constantSystem;
AstConstant evaluate(Node node) {
+ // TODO(johnniwinter): should there be a visitErrorNode?
Johnni Winther 2015/07/27 07:57:05 'johnniwinter' -> 'johnniwinther' (but kudos for g
Siggi Cherem (dart-lang) 2015/07/27 16:26:44 Oh thanks for letting me know :) I forgot to inc
+ if (node is ErrorNode) return new ErroneousAstConstant(context, node);
return node.accept(this);
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/scanner/listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698