Chromium Code Reviews| Index: lib/compiler/implementation/js_backend/constant_system_javascript.dart |
| diff --git a/lib/compiler/implementation/js_backend/constant_system_javascript.dart b/lib/compiler/implementation/js_backend/constant_system_javascript.dart |
| index f4532b531f07098fe039ecd31f3861a05c9bceca..d73ba48272e567957512fb52d7cad98ba01cb105 100644 |
| --- a/lib/compiler/implementation/js_backend/constant_system_javascript.dart |
| +++ b/lib/compiler/implementation/js_backend/constant_system_javascript.dart |
| @@ -196,7 +196,7 @@ class JavaScriptConstantSystem implements ConstantSystem { |
| } else if (constant.isDouble()) { |
| DoubleConstant doubleResult = constant; |
| double doubleValue = doubleResult.value; |
| - if (!doubleValue.isInfinite() && !doubleValue.isNaN() && |
| + if (!doubleValue.isInfinite && !doubleValue.isNaN && |
| !constant.isMinusZero()) { |
|
Mads Ager (google)
2012/10/23 16:06:51
This now looks out of place. Maybe follow up with
floitsch
2012/10/23 16:14:19
The constants have a lot of is-methods. I didn't w
|
| int intValue = doubleValue.toInt(); |
| if (intValue == doubleValue && integerFitsIntoDouble(intValue)) { |