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

Unified Diff: lib/runtime/dart/_js_names.js

Issue 1122133003: fixes #157, renaming local library identifiers if needed. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: new approach Created 5 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: lib/runtime/dart/_js_names.js
diff --git a/lib/runtime/dart/_js_names.js b/lib/runtime/dart/_js_names.js
index 1c6f4a7b7811e0450e8329e314f22a8853a02da1..625f83b3ef4c70f3a473a9ee088d230f2bf269da 100644
--- a/lib/runtime/dart/_js_names.js
+++ b/lib/runtime/dart/_js_names.js
@@ -1,5 +1,10 @@
-var _js_names;
-(function(exports) {
+var _js_names = dart.defineLibrary(_js_names, {});
+var _foreign_helper = dart.import(_foreign_helper);
+var _js_embedded_names = dart.lazyImport(_js_embedded_names);
+var core = dart.lazyImport(core);
+var _interceptors = dart.lazyImport(_interceptors);
+var _js_helper = dart.import(_js_helper);
+(function(exports, _foreign_helper, _js_embedded_names, core, _interceptors, _js_helper) {
'use strict';
// Function preserveNames: () → dynamic
function preserveNames() {
@@ -76,4 +81,4 @@ var _js_names;
exports.extractKeys = extractKeys;
exports.unmangleGlobalNameIfPreservedAnyways = unmangleGlobalNameIfPreservedAnyways;
exports.unmangleAllIdentifiersIfPreservedAnyways = unmangleAllIdentifiersIfPreservedAnyways;
-})(_js_names || (_js_names = {}));
+})(_js_names, _foreign_helper, _js_embedded_names, core, _interceptors, _js_helper);

Powered by Google App Engine
This is Rietveld 408576698