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

Unified Diff: sdk/lib/_internal/compiler/implementation/enqueue.dart

Issue 11299220: Add @JSName annotation for native fields and methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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: sdk/lib/_internal/compiler/implementation/enqueue.dart
diff --git a/sdk/lib/_internal/compiler/implementation/enqueue.dart b/sdk/lib/_internal/compiler/implementation/enqueue.dart
index f12d760f68034e9fd357ff8590e7812dd2510502..ee82fb876b435a28a959079813ede3b8501bc0e0 100644
--- a/sdk/lib/_internal/compiler/implementation/enqueue.dart
+++ b/sdk/lib/_internal/compiler/implementation/enqueue.dart
@@ -212,6 +212,7 @@ class Enqueuer {
}
} else if (member.kind == ElementKind.FIELD &&
member.enclosingElement.isNative()) {
+ nativeEnqueuer.registerField(member);
if (universe.hasInvokedGetter(member, compiler) ||
universe.hasInvocation(member, compiler)) {
nativeEnqueuer.registerFieldLoad(member);

Powered by Google App Engine
This is Rietveld 408576698