| Index: sdk/lib/_internal/compiler/implementation/js_backend/constant_system_javascript.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/constant_system_javascript.dart b/sdk/lib/_internal/compiler/implementation/js_backend/constant_system_javascript.dart
|
| index fa5384f22ffcd4aeb72026b25dda1cadf14441c7..1b4a0ffd81d0c3bd9cc707bcec148241bb194684 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/js_backend/constant_system_javascript.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/js_backend/constant_system_javascript.dart
|
| @@ -199,7 +199,7 @@ class JavaScriptConstantSystem extends ConstantSystem {
|
| double doubleValue = doubleResult.value;
|
| if (!doubleValue.isInfinite && !doubleValue.isNaN &&
|
| !constant.isMinusZero()) {
|
| - int intValue = doubleValue.toInt();
|
| + int intValue = doubleValue.truncate();
|
| if (intValue == doubleValue && integerFitsIntoDouble(intValue)) {
|
| return new IntConstant(intValue);
|
| }
|
|
|