Skip to content

Commit 1b957f7

Browse files
authored
Fix JS_NewClassID comment (#784)
1 parent b675a95 commit 1b957f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quickjs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3519,7 +3519,7 @@ static inline BOOL JS_IsEmptyString(JSValue v)
35193519

35203520
/* JSClass support */
35213521

3522-
/* a new class ID is allocated if *pclass_id != 0 */
3522+
/* a new class ID is allocated if *pclass_id == 0, otherwise *pclass_id is left unchanged */
35233523
JSClassID JS_NewClassID(JSRuntime *rt, JSClassID *pclass_id)
35243524
{
35253525
JSClassID class_id = *pclass_id;

0 commit comments

Comments
 (0)