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

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

Issue 1099333002: canonicalize const (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 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/core.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 ad6a382788c631272f5522865eea3cd80bf41e33..d391bd8af0c680f9250e5e49f9fa3dd6c00e4221 100644
--- a/lib/runtime/dart/math.js
+++ b/lib/runtime/dart/math.js
@@ -66,7 +66,7 @@ var math;
Random(seed) {
if (seed === void 0)
seed = null;
- return seed == null ? new _JSRandom() : new _Random(seed);
+ return seed == null ? dart.const(new _JSRandom()) : new _Random(seed);
}
}
let _RectangleBase$ = dart.generic(function(T) {
« no previous file with comments | « lib/runtime/dart/core.js ('k') | lib/runtime/dart/typed_data.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698