Fix primitive value handling in Date constructor
JerryScript-DCO-1.0-Signed-off-by: Kristof Kosztyo [email protected]
This commit is contained in:
1 parent
801e8e34cd
commit
8cd1ade515
2 files changed
+7
-1
No files matched your search
@@ -529,7 +529,7 @@ ecma_builtin_date_dispatch_construct (const ecma_value_t *arguments_list_p, /**<
|
||||
ECMA_TRY_CATCH (prim_value, ecma_op_to_number (arguments_list_p[0]), ret_value);
|
||||
|
||||
prim_value_num_p = ecma_alloc_number ();
|
||||
*prim_value_num_p = *ecma_get_number_from_value (prim_value);
|
||||
*prim_value_num_p = ecma_date_time_clip (*ecma_get_number_from_value (prim_value));
|
||||
|
||||
ECMA_FINALIZE (prim_value);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user