From 1b957f71e38da9b5e16f75869be519640c6fbff5 Mon Sep 17 00:00:00 2001 From: gschwind Date: Sun, 5 Jan 2025 20:46:21 +0100 Subject: [PATCH] Fix JS_NewClassID comment (#784) --- quickjs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickjs.c b/quickjs.c index 984ab45..9b86e42 100644 --- a/quickjs.c +++ b/quickjs.c @@ -3519,7 +3519,7 @@ static inline BOOL JS_IsEmptyString(JSValue v) /* JSClass support */ -/* a new class ID is allocated if *pclass_id != 0 */ +/* a new class ID is allocated if *pclass_id == 0, otherwise *pclass_id is left unchanged */ JSClassID JS_NewClassID(JSRuntime *rt, JSClassID *pclass_id) { JSClassID class_id = *pclass_id;