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/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: Address comments 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
« no previous file with comments | « lib/runtime/dart/_js_embedded_names.js ('k') | lib/runtime/dart/_js_primitives.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1494c5b3993eb4a3aab88722e74e15f3159bea5e 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', null, /* Imports */[
+ 'dart/core',
+ 'dart/collection',
+ 'dart/_foreign_helper'
+], /* Lazy imports */[
+ 'dart/_interceptors'
+], 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);
+});
« no previous file with comments | « lib/runtime/dart/_js_embedded_names.js ('k') | lib/runtime/dart/_js_primitives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698