]> git.kaiwu.me - quickjs.git/commitdiff
fixed Atomics.pause() in the NaN boxing case (32 bit cpu)
authorFabrice Bellard <fabrice@bellard.org>
Mon, 29 Sep 2025 10:10:36 +0000 (12:10 +0200)
committerFabrice Bellard <fabrice@bellard.org>
Mon, 29 Sep 2025 10:10:36 +0000 (12:10 +0200)
quickjs.c

index 9d09c59aaab6785776678a6081d02d48e8f20794..8f7d88f6c237df623c58a11e5f514f22adf51516 100644 (file)
--- 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))