mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
For negative out-of-range time values, ecma_date_year_from_time fell into an infinite loop. (Moreover, for positive out-of-range time values, it returned an incorrect year.) This patch fixes the helper to return NaN in these cases (and ensures that its call sites are prepared for NaN values). Fixes #1657. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu