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

Unified Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 2545153002: Handle synthetic nodes use to throw exceptions (Closed)
Patch Set: Also handle malformed type Created 4 years 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: pkg/compiler/lib/src/js_backend/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index c4d156b6fff79f526518e27ab4964ba7a696a188..811096b1c8c3555b1044be11b568b4606a5acd15 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -748,6 +748,10 @@ class JavaScriptBackend extends Backend {
element == coreClasses.stringClass) {
// TODO(johnniwinther): Avoid these.
return true;
+ } else if (element == helpers.genericNoSuchMethod ||
+ element == helpers.unresolvedConstructorError ||
+ element == helpers.malformedTypeError) {
+ return true;
}
return false;
}

Powered by Google App Engine
This is Rietveld 408576698