From 0c5d59f6a9f1fb6935e263603d2e8d45b9559fd5 Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Wed, 16 Apr 2025 15:04:57 +0200 Subject: optimized and fixed JS_AtomIsNumericIndex1(): 'NaN' is also a number --- quickjs-atom.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'quickjs-atom.h') 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") -- cgit v1.2.3