mirror of
https://github.com/bellard/quickjs.git
synced 2025-11-15 18:22:15 +03:00
fixed Atomics.pause() in the NaN boxing case (32 bit cpu)
This commit is contained in:
@@ -57777,7 +57777,7 @@ static JSValue js_atomics_pause(JSContext *ctx, JSValueConst this_obj,
|
|||||||
double d;
|
double d;
|
||||||
|
|
||||||
if (argc > 0) {
|
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
|
case JS_TAG_FLOAT64: // accepted if and only if fraction == 0.0
|
||||||
d = JS_VALUE_GET_FLOAT64(argv[0]);
|
d = JS_VALUE_GET_FLOAT64(argv[0]);
|
||||||
if (isfinite(d))
|
if (isfinite(d))
|
||||||
|
|||||||
Reference in New Issue
Block a user