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

Unified Diff: lib/kernel.dart

Issue 2108193002: Change error handling. (Closed) Base URL: git@github.com:dart-lang/rasta.git@master
Patch Set: Created 4 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: lib/kernel.dart
diff --git a/lib/kernel.dart b/lib/kernel.dart
index fa6be8a7c60bf982396c83173c85da0fa4dfe27a..36bfb4b012feadc7ee5921a7ba6330333be39033 100644
--- a/lib/kernel.dart
+++ b/lib/kernel.dart
@@ -643,11 +643,19 @@ class Kernel {
return compiler.isInternalStateConsistent;
}
- ir.Procedure getDynamicErrorHandler() {
+ ir.Procedure getUnresolvedConstructorBuilder() {
LibraryElement internal =
- compiler.libraryLoader.lookupLibrary(Uri.parse("dart:_internal"));
+ compiler.libraryLoader.lookupLibrary(Uri.parse("dart:core"));
+ FunctionElement function =
+ internal.implementation.localLookup("_unresolvedConstructorError");
+ return functionToIr(function);
+ }
+
+ ir.Procedure getMalformedTypeErrorBuilder() {
+ LibraryElement internal =
+ compiler.libraryLoader.lookupLibrary(Uri.parse("dart:core"));
FunctionElement function =
- internal.implementation.localLookup("_dynamicError");
+ internal.implementation.localLookup("_malformedTypeError");
return functionToIr(function);
}
}

Powered by Google App Engine
This is Rietveld 408576698