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

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

Issue 1145243013: Check for duplicate library names (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rebase and cleanup Created 5 years, 6 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_helper.js
diff --git a/lib/runtime/dart/_js_helper.js b/lib/runtime/dart/_js_helper.js
index 528fdd52d696646b105ed512e31c00cbba5c535a..decdd8a401df6800581c076f52d2df05b0bca474 100644
--- a/lib/runtime/dart/_js_helper.js
+++ b/lib/runtime/dart/_js_helper.js
@@ -1,9 +1,10 @@
-var _js_helper = dart.defineLibrary(_js_helper, {});
-var core = dart.import(core);
-var collection = dart.import(collection);
-var _interceptors = dart.lazyImport(_interceptors);
-var _foreign_helper = dart.import(_foreign_helper);
-(function(exports, core, collection, _interceptors, _foreign_helper) {
+dart.library('dart/_js_helper.js', null, /* Imports */[
+ 'dart/core.js',
+ 'dart/collection.js',
+ 'dart/_foreign_helper.js'
+], /* Lazy imports */[
+ 'dart/_interceptors.js'
+], function(exports, core, collection, _foreign_helper, _interceptors) {
'use strict';
class NoThrows extends core.Object {
NoThrows() {
@@ -1201,4 +1202,4 @@ var _foreign_helper = dart.import(_foreign_helper);
exports.RuntimeError = RuntimeError;
exports.random64 = random64;
exports.jsonEncodeNative = jsonEncodeNative;
-})(_js_helper, core, collection, _interceptors, _foreign_helper);
+});

Powered by Google App Engine
This is Rietveld 408576698