mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Fix ecma_date_parse_date_chars: lit_char_is_unicode_digit -> lit_char_is_decimal_digit.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
parent
afe58e90ae
commit
c21399cd58
@ -21,6 +21,7 @@
|
||||
#include "ecma-globals.h"
|
||||
#include "ecma-helpers.h"
|
||||
#include "ecma-try-catch-macro.h"
|
||||
#include "lit-char-helpers.h"
|
||||
|
||||
#ifndef CONFIG_ECMA_COMPACT_PROFILE_DISABLE_DATE_BUILTIN
|
||||
|
||||
@ -58,7 +59,7 @@ ecma_date_parse_date_chars (lit_utf8_iterator_t *iter, /**< iterator of the utf8
|
||||
while (num_of_chars--)
|
||||
{
|
||||
if (lit_utf8_iterator_is_eos (iter)
|
||||
|| !lit_char_is_unicode_digit (lit_utf8_iterator_peek_next (iter)))
|
||||
|| !lit_char_is_decimal_digit (lit_utf8_iterator_peek_next (iter)))
|
||||
{
|
||||
return ecma_number_make_nan ();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user