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

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: 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/isolate.js ('k') | lib/runtime/dart/typed_data.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/math.js
diff --git a/lib/runtime/dart/math.js b/lib/runtime/dart/math.js
index 0f5f2d7b2d8dd7eecee4f363c8d405458fabd324..bd26b58054e2983e9d7b4ee6c282bb5887dee4a9 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', null, /* Imports */[
+ 'dart/core'
+], /* Lazy imports */[
+ 'dart/_js_helper'
+], 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);
+});
« no previous file with comments | « lib/runtime/dart/isolate.js ('k') | lib/runtime/dart/typed_data.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698