| Index: pkg/analyzer/test/src/summary/resynthesize_test.dart
|
| diff --git a/pkg/analyzer/test/src/summary/resynthesize_test.dart b/pkg/analyzer/test/src/summary/resynthesize_test.dart
|
| index 3665b018d377ece9e37928d0a806996a8f067f4b..c91e74e5d148321122779deaef618eee9c6617ef 100644
|
| --- a/pkg/analyzer/test/src/summary/resynthesize_test.dart
|
| +++ b/pkg/analyzer/test/src/summary/resynthesize_test.dart
|
| @@ -77,10 +77,14 @@ class ResynthTest extends ResolverTestCase {
|
| compareFunctionElements(
|
| resynthesized.entryPoint, original.entryPoint, '(entry point)');
|
| }
|
| - compareExecutableElements(
|
| - resynthesized.loadLibraryFunction as ExecutableElementImpl,
|
| - original.loadLibraryFunction as ExecutableElementImpl,
|
| - '(loadLibraryFunction)');
|
| + // The libraries `dart:core` and `dart:async` cannot create their
|
| + // `loadLibrary` functions until after both are created.
|
| + if (original.name != 'dart.core' && original.name != 'dart.async') {
|
| + compareExecutableElements(
|
| + resynthesized.loadLibraryFunction as ExecutableElementImpl,
|
| + original.loadLibraryFunction as ExecutableElementImpl,
|
| + '(loadLibraryFunction)');
|
| + }
|
| // TODO(paulberry): test metadata.
|
| }
|
|
|
|
|