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

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: 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/math.js
diff --git a/lib/runtime/dart/math.js b/lib/runtime/dart/math.js
index 0f5f2d7b2d8dd7eecee4f363c8d405458fabd324..ceccd7377dd2a4d74fc0e8a2ec311d9be0702143 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