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

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

Issue 1580803002: Fixes #410 (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rebase Created 4 years, 11 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 | « no previous file | lib/src/codegen/js_codegen.dart » ('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 e2514669d90152844a9acbe7122b83afd105bc63..4c811d7783c4c4f3e01a838bd9e056799eb2adc5 100644
--- a/lib/runtime/dart/math.js
+++ b/lib/runtime/dart/math.js
@@ -269,7 +269,7 @@ dart_library.library('dart/math', null, /* Imports */[
return (dart.notNull(a) + dart.notNull(b)) * dart.notNull(a) * dart.notNull(b);
}
}
- if (a == 0 && dart.notNull(b.isNegative) || dart.notNull(b.isNaN)) return b;
+ if (a == 0 && dart.notNull(b[dartx.isNegative]) || dart.notNull(b[dartx.isNaN])) return b;
return a;
}
return a;
@@ -286,10 +286,10 @@ dart_library.library('dart/math', null, /* Imports */[
return dart.notNull(a) + dart.notNull(b);
}
}
- if (dart.notNull(b.isNaN)) return b;
+ if (dart.notNull(b[dartx.isNaN])) return b;
return a;
}
- if (b == 0 && dart.notNull(a.isNegative)) return b;
+ if (b == 0 && dart.notNull(a[dartx.isNegative])) return b;
return a;
}
dart.fn(max, () => dart.definiteFunctionType(dart.dynamic, [dart.dynamic, dart.dynamic]));
« no previous file with comments | « no previous file | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698