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

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

Issue 1122133003: fixes #157, renaming local library identifiers if needed. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: new approach Created 5 years, 7 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 16abfaec7497520753be012e76dc80c88c9414a1..5a2080c7c87ca8a56e2434e66389d6c86bf71c71 100644
--- a/lib/runtime/dart/math.js
+++ b/lib/runtime/dart/math.js
@@ -1,5 +1,7 @@
-var math;
-(function(exports) {
+var math = dart.defineLibrary(math, {});
+var core = dart.lazyImport(core);
+var _js_helper = dart.import(_js_helper);
+(function(exports, core, _js_helper) {
'use strict';
class _JenkinsSmiHash extends core.Object {
static combine(hash, value) {
@@ -460,4 +462,4 @@ var math;
exports.sqrt = sqrt;
exports.exp = exp;
exports.log = log;
-})(math || (math = {}));
+})(math, core, _js_helper);

Powered by Google App Engine
This is Rietveld 408576698