optimized and fixed JS_AtomIsNumericIndex1(): 'NaN' is also a number

This commit is contained in:
Fabrice Bellard
2025-04-16 15:04:57 +02:00
parent 3b04c58628
commit 0c5d59f6a9
4 changed files with 23 additions and 48 deletions

View File

@@ -173,6 +173,10 @@ DEF(status, "status")
DEF(reason, "reason")
DEF(globalThis, "globalThis")
DEF(bigint, "bigint")
DEF(minus_zero, "-0")
DEF(Infinity, "Infinity")
DEF(minus_Infinity, "-Infinity")
DEF(NaN, "NaN")
/* the following 3 atoms are only used with CONFIG_ATOMICS */
DEF(not_equal, "not-equal")
DEF(timed_out, "timed-out")