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

Unified Diff: lib/compiler/implementation/native_handler.dart

Issue 10828413: Only add JS once, and not to very single patched library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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
« no previous file with comments | « lib/compiler/implementation/compiler.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/native_handler.dart
diff --git a/lib/compiler/implementation/native_handler.dart b/lib/compiler/implementation/native_handler.dart
index c11bafdccc2bac72ee4c3779909a33df45506f2c..d4cb78e070bcc081328a30883fe1072ff22dbe02 100644
--- a/lib/compiler/implementation/native_handler.dart
+++ b/lib/compiler/implementation/native_handler.dart
@@ -83,7 +83,7 @@ void maybeEnableNative(Compiler compiler,
|| libraryName == 'dart:isolate'
|| libraryName == 'dart:html') {
library.canUseNative = true;
- library.addToScope(compiler.findHelper(const SourceString('JS')), compiler);
+ compiler.addForeignFunctions(library);
ahe 2012/08/21 11:28:31 I'm not sure about this. What do you need?
Anders Johnsen 2012/08/21 11:40:23 The problem is not here, but in the other file. We
ahe 2012/08/21 12:01:16 I don't think the patch libraries need all the for
Anders Johnsen 2012/08/21 14:31:11 Thank you for explaining, I've reverted this parti
if (compiler.jsIndexingBehaviorInterface !== null) {
library.addToScope(compiler.jsIndexingBehaviorInterface, compiler);
}
« no previous file with comments | « lib/compiler/implementation/compiler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698