| Index: pkg/compiler/lib/src/native/scanner.dart
|
| diff --git a/pkg/compiler/lib/src/native/scanner.dart b/pkg/compiler/lib/src/native/scanner.dart
|
| index cfdb703b35980f353b18505815607b3c1980de24..c18bfa8ef48b99d28efeea4848d9f8c298e31516 100644
|
| --- a/pkg/compiler/lib/src/native/scanner.dart
|
| +++ b/pkg/compiler/lib/src/native/scanner.dart
|
| @@ -5,8 +5,7 @@
|
| part of native;
|
|
|
| void checkAllowedLibrary(ElementListener listener, Token token) {
|
| - LibraryElement currentLibrary = listener.compilationUnitElement.library;
|
| - if (currentLibrary.canUseNative) return;
|
| + if (listener.scannerOptions.canUseNative) return;
|
| listener.reportError(token, MessageKind.NATIVE_NOT_SUPPORTED);
|
| }
|
|
|
|
|