Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2453)

Unified Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 2907383002: Don't tag fromEnvironment constructors as native (Closed)
Patch Set: Fix. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/js_backend/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index 97ececbf2d984dcdfa70bd0b95b1be502bda6416..8486db8de02d117d209ce69856207900e26c3f6f 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -1072,7 +1072,8 @@ class JavaScriptBackend {
/// Returns `true` if the `native` pseudo keyword is supported for [library].
bool canLibraryUseNative(LibraryEntity library) {
- return native.maybeEnableNative(compiler, library);
+ return native.maybeEnableNative(library,
+ allowNativeExtensions: compiler.options.allowNativeExtensions);
}
bool isTargetSpecificLibrary(LibraryElement library) {
« no previous file with comments | « no previous file | pkg/compiler/lib/src/kernel/element_map_impl.dart » ('j') | pkg/compiler/lib/src/native/native.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698