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

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

Issue 1145243013: Check for duplicate library names (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rework with canonical names 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/math.js
diff --git a/lib/runtime/dart/math.js b/lib/runtime/dart/math.js
index 75011d864d0cf9eeabb265458c4d37a91672e4b0..f3669d937167410462d93547aff4c1526d6cdc3e 100644
--- a/lib/runtime/dart/math.js
+++ b/lib/runtime/dart/math.js
@@ -1,7 +1,8 @@
-var math = dart.defineLibrary(math, {});
-var core = dart.import(core);
-var _js_helper = dart.lazyImport(_js_helper);
-(function(exports, core, _js_helper) {
+dart.library('dart/math.js', null, /* Imports */[
+ 'dart/core.js'
+], /* Lazy imports */[
+ 'dart/_js_helper.js'
+], function(exports, core, _js_helper) {
'use strict';
class _JenkinsSmiHash extends core.Object {
static combine(hash, value) {
@@ -521,4 +522,4 @@ var _js_helper = dart.lazyImport(_js_helper);
exports.sqrt = sqrt;
exports.exp = exp;
exports.log = log;
-})(math, core, _js_helper);
+});

Powered by Google App Engine
This is Rietveld 408576698