mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 01:59:38 +00:00
2dcc064916
The current constructor allowed large numbers which overflows when multiplied by 1000 to get microseconds, which then hid the fact that the original value was out of range. Now checks directly in the `fromMillisecondsSinceEpoch` constructor, before multiplying by 1000. Fixes #46966 BUG= http://dartbug.com/46966 TEST= Regression test added to date_time_test.dart Change-Id: I4c6448666a49d51c285bd538e05e51a141b3b0b2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/214641 Commit-Queue: Lasse R.H. Nielsen <lrn@google.com> Reviewed-by: Nate Bosch <nbosch@google.com> |
||
---|---|---|
.. | ||
js_dev_runtime | ||
js_runtime | ||
sdk_library_metadata | ||
vm | ||
allowed_experiments.json | ||
fix_data.yaml |