From 90e9fec5aed81e0bef9a34279c6143a95bff4682 Mon Sep 17 00:00:00 2001 From: Sigmund Cherem Date: Tue, 3 Jul 2018 19:12:35 +0000 Subject: [PATCH] Add changelog entry for language change on int literals Bug: https://github.com/dart-lang/sdk/issues/33282 Change-Id: I50d1a8855e83996777b8b8e051cd4171d5a8a9aa Reviewed-on: https://dart-review.googlesource.com/63664 Reviewed-by: Samuel Rawlins Commit-Queue: Sigmund Cherem --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 45524104c6f..c449d0c9421 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -81,12 +81,18 @@ unless the return type of the function is `void` or `dynamic`. * Mixed return statements of the form `return;` and `return exp;` are now allowed when `exp` has type `void`. +* A compile time error is emitted for any literal which cannot be exactly + represented on the target platform. As a result, dart2js and DDC will + report errors if an integer literal cannot be represented exactly in + JavaScript. Issue [33282][issue 33282]. + [issue 31887]: https://github.com/dart-lang/sdk/issues/31887 [issue 30638]: https://github.com/dart-lang/sdk/issues/30638 [issue 32233]: https://github.com/dart-lang/sdk/issues/32233 [issue 32881]: https://github.com/dart-lang/sdk/issues/32881 [issue 33218]: https://github.com/dart-lang/sdk/issues/33218 [issue 31278]: https://github.com/dart-lang/sdk/issues/31278 +[issue 33282]: https://github.com/dart-lang/sdk/issues/33282 ### Dart VM