| Index: runtime/lib/errors_patch.dart
|
| diff --git a/runtime/lib/errors_patch.dart b/runtime/lib/errors_patch.dart
|
| index 01920edd28e08ec35df5ffa4d64db1df69fb9e07..3723a8cd738efbd70ade44031227602f0db67e3d 100644
|
| --- a/runtime/lib/errors_patch.dart
|
| +++ b/runtime/lib/errors_patch.dart
|
| @@ -181,6 +181,20 @@ patch class NoSuchMethodError {
|
| existingArgumentNames);
|
| }
|
|
|
| + // Calls _throwNew if 'prefix' not loaded.
|
| + static void _throwNewIfNotLoaded(_LibraryPrefix prefix,
|
| + Object receiver,
|
| + String memberName,
|
| + int invocation_type,
|
| + List arguments,
|
| + List argumentNames,
|
| + List existingArgumentNames) {
|
| + if (!prefix.is_loaded()) {
|
| + _throwNew(receiver, memberName, invocation_type, arguments,
|
| + argumentNames, existingArgumentNames);
|
| + }
|
| + }
|
| +
|
| // Remember the type from the invocation mirror or static compilation
|
| // analysis when thrown directly with _throwNew. A negative value means
|
| // that no information is available.
|
|
|