| 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);
|
| }
|
| }
|
|
|