diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2025-04-16 15:04:57 +0200 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2025-04-16 15:04:57 +0200 |
commit | 0c5d59f6a9f1fb6935e263603d2e8d45b9559fd5 (patch) | |
tree | 1ca13896da9fcd48bc181a49972e40f0d0985c88 /quickjs-atom.h | |
parent | 3b04c58628f157d3d63e2cb11b32029275ef49f6 (diff) | |
download | quickjs-0c5d59f6a9f1fb6935e263603d2e8d45b9559fd5.tar.gz quickjs-0c5d59f6a9f1fb6935e263603d2e8d45b9559fd5.zip |
optimized and fixed JS_AtomIsNumericIndex1(): 'NaN' is also a number
Diffstat (limited to 'quickjs-atom.h')
-rw-r--r-- | quickjs-atom.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/quickjs-atom.h b/quickjs-atom.h index 43f2526..73766f2 100644 --- a/quickjs-atom.h +++ b/quickjs-atom.h @@ -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") |