| Index: tests/compiler/dart2js/memory_compiler.dart
|
| diff --git a/tests/compiler/dart2js/memory_compiler.dart b/tests/compiler/dart2js/memory_compiler.dart
|
| index e495f92222e8f27f3cf430c759c6085b44bc1a45..07fc7798fb48af31a7783243fa3070147ae93af0 100644
|
| --- a/tests/compiler/dart2js/memory_compiler.dart
|
| +++ b/tests/compiler/dart2js/memory_compiler.dart
|
| @@ -171,7 +171,16 @@ Compiler compilerFor(Map<String,String> memorySourceFiles,
|
| if (library.isPlatformLibrary) {
|
| compiler.onLibraryCreated(library);
|
| compiler.libraries[uri] = library;
|
| - compiler.onLibraryScanned(library);
|
| + // TODO(johnniwinther): Assert that no libraries are created lazily from
|
| + // this call.
|
| + compiler.onLibraryScanned(library, null);
|
| + if (library.isPatched) {
|
| + var patchLibrary = library.patch;
|
| + compiler.onLibraryCreated(patchLibrary);
|
| + // TODO(johnniwinther): Assert that no libraries are created lazily
|
| + // from this call.
|
| + compiler.onLibraryScanned(patchLibrary, null);
|
| + }
|
| copiedLibraries[library.canonicalUri] = library;
|
| }
|
| });
|
|
|