mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Date.prototype.setTime should invalidate local TZA cache (#4786)
Fixes #4749. JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác csaba.osztrogonac@h-lab.eu
This commit is contained in:
parent
f3cd586094
commit
54b1a3c739
@ -668,6 +668,9 @@ ecma_builtin_date_prototype_dispatch_routine (uint8_t builtin_routine_id, /**< b
|
||||
}
|
||||
|
||||
*date_value_p = ecma_date_time_clip (time_num);
|
||||
#if JERRY_ESNEXT
|
||||
date_object_p->header.u.cls.u1.date_flags &= (uint8_t) ~ECMA_DATE_TZA_SET;
|
||||
#endif /* JERRY_ESNEXT */
|
||||
|
||||
return ecma_make_number_value (*date_value_p);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user