| Index: lib/compiler/implementation/dart_backend/backend.dart
|
| diff --git a/lib/compiler/implementation/dart_backend/backend.dart b/lib/compiler/implementation/dart_backend/backend.dart
|
| index f997fefb579d076a84a25033dd66f104b9071b48..b3795b1172c19f33ab328577384b12ef686896e3 100644
|
| --- a/lib/compiler/implementation/dart_backend/backend.dart
|
| +++ b/lib/compiler/implementation/dart_backend/backend.dart
|
| @@ -61,11 +61,12 @@ class DartBackend extends Backend {
|
| * Object should not be in the resulting code.
|
| */
|
| final LIBS_TO_IGNORE = [
|
| - compiler.coreImplLibrary,
|
| compiler.jsHelperLibrary,
|
| compiler.interceptorsLibrary,
|
| - compiler.coreLibrary,
|
| ];
|
| + compiler.libraries.forEach((uri, lib) {
|
| + if (uri.startsWith('dart:')) LIBS_TO_IGNORE.add(lib);
|
| + });
|
| bool shouldOutput(Element element) =>
|
| element.kind !== ElementKind.VOID &&
|
| LIBS_TO_IGNORE.indexOf(element.getLibrary()) == -1;
|
|
|