Fix JS_NewClassID comment (#784)

This commit is contained in:
gschwind 2025-01-05 20:46:21 +01:00 committed by GitHub
parent b675a95bec
commit 1b957f71e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;