| Index: pkg/compiler/lib/src/native/native.dart
|
| diff --git a/pkg/compiler/lib/src/native/native.dart b/pkg/compiler/lib/src/native/native.dart
|
| index 5a1af7cfe489e605c9e761428ef3b205038c827f..805196a05dce53f4075b8b8d52537146ba1d0038 100644
|
| --- a/pkg/compiler/lib/src/native/native.dart
|
| +++ b/pkg/compiler/lib/src/native/native.dart
|
| @@ -13,24 +13,23 @@ export 'js.dart';
|
| export 'scanner.dart';
|
| export 'ssa.dart';
|
|
|
| -bool maybeEnableNative(Compiler compiler,
|
| - LibraryElement library) {
|
| +bool maybeEnableNative(Compiler compiler, LibraryElement library) {
|
| String libraryName = library.canonicalUri.toString();
|
| - if (library.entryCompilationUnit.script.name.contains(
|
| - 'sdk/tests/compiler/dart2js_native')
|
| - || library.entryCompilationUnit.script.name.contains(
|
| - 'sdk/tests/compiler/dart2js_extra')
|
| - || libraryName == 'dart:async'
|
| - || libraryName == 'dart:html'
|
| - || libraryName == 'dart:html_common'
|
| - || libraryName == 'dart:indexed_db'
|
| - || libraryName == 'dart:js'
|
| - || libraryName == 'dart:svg'
|
| - || libraryName == 'dart:_native_typed_data'
|
| - || libraryName == 'dart:web_audio'
|
| - || libraryName == 'dart:web_gl'
|
| - || libraryName == 'dart:web_sql'
|
| - || compiler.options.allowNativeExtensions) {
|
| + if (library.entryCompilationUnit.script.name
|
| + .contains('sdk/tests/compiler/dart2js_native') ||
|
| + library.entryCompilationUnit.script.name
|
| + .contains('sdk/tests/compiler/dart2js_extra') ||
|
| + libraryName == 'dart:async' ||
|
| + libraryName == 'dart:html' ||
|
| + libraryName == 'dart:html_common' ||
|
| + libraryName == 'dart:indexed_db' ||
|
| + libraryName == 'dart:js' ||
|
| + libraryName == 'dart:svg' ||
|
| + libraryName == 'dart:_native_typed_data' ||
|
| + libraryName == 'dart:web_audio' ||
|
| + libraryName == 'dart:web_gl' ||
|
| + libraryName == 'dart:web_sql' ||
|
| + compiler.options.allowNativeExtensions) {
|
| return true;
|
| }
|
| return false;
|
|
|