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

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

Issue 1042003002: fix list literal initialization call fix typeof calls for primitive JS types add dart/collection.js… (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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 e39d54a000f851e1e77ab4c63f941bdfe1c8231c..c9c1686c363e6d07d8ba3ed47113c28229b8abbf 100644
--- a/lib/runtime/dart/math.js
+++ b/lib/runtime/dart/math.js
@@ -217,8 +217,8 @@ var math;
return b;
if (dart.notNull(a) < dart.notNull(b))
return a;
- if (typeof b == number) {
- if (typeof a == number) {
+ if (typeof b == 'number') {
+ if (typeof a == 'number') {
if (a === 0.0) {
return (dart.notNull(a) + dart.notNull(b)) * dart.notNull(a) * dart.notNull(b);
}
@@ -239,8 +239,8 @@ var math;
return a;
if (dart.notNull(a) < dart.notNull(b))
return b;
- if (typeof b == number) {
- if (typeof a == number) {
+ if (typeof b == 'number') {
+ if (typeof a == 'number') {
if (a === 0.0) {
return dart.notNull(a) + dart.notNull(b);
}

Powered by Google App Engine
This is Rietveld 408576698