From a6db749af7271c1f679ce19039559c1d795e98f2 Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Mon, 29 Sep 2025 12:10:36 +0200 Subject: [PATCH] fixed Atomics.pause() in the NaN boxing case (32 bit cpu) --- quickjs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickjs.c b/quickjs.c index 9d09c59..8f7d88f 100644 --- a/quickjs.c +++ b/quickjs.c @@ -57777,7 +57777,7 @@ static JSValue js_atomics_pause(JSContext *ctx, JSValueConst this_obj, double d; if (argc > 0) { - switch (JS_VALUE_GET_TAG(argv[0])) { + switch (JS_VALUE_GET_NORM_TAG(argv[0])) { case JS_TAG_FLOAT64: // accepted if and only if fraction == 0.0 d = JS_VALUE_GET_FLOAT64(argv[0]); if (isfinite(d))