]> git.kaiwu.me - quickjs.git/commitdiff
fixed typo in commit 445624b
authorFabrice Bellard <fabrice@bellard.org>
Sat, 13 Jun 2026 15:54:54 +0000 (17:54 +0200)
committerFabrice Bellard <fabrice@bellard.org>
Sat, 13 Jun 2026 15:54:54 +0000 (17:54 +0200)
quickjs.c

index ed13bf7f330d8b4e562481b5636cc1ca71a8e5a4..a8fb103d996522b9f0d832acdb09fde344329d3c 100644 (file)
--- a/quickjs.c
+++ b/quickjs.c
@@ -20388,7 +20388,7 @@ static JSValue JS_CallInternal(JSContext *caller_ctx, JSValueConst func_obj,
                     }                                                   \
                     JS_FreeValue(ctx, op1);                             \
                     JS_FreeValue(ctx, op2);                             \
-                } else if (tag1 == JS_TAG_NULL || tag2 == JS_TAG_UNDEFINED) { \
+                } else if (tag1 == JS_TAG_NULL || tag1 == JS_TAG_UNDEFINED) { \
                     res = (tag1 == tag2);                               \
                     JS_FreeValue(ctx, op2);                             \
                 } else if (tag1 == JS_TAG_STRING && tag2 == JS_TAG_STRING) { \