class id argument type fix

This commit is contained in:
Zia 2024-03-14 01:20:53 +03:30
parent a4eff5077e
commit adcfe4cadb

View file

@ -4943,7 +4943,7 @@ static int JS_SetObjectData(JSContext *ctx, JSValueConst obj, JSValue val)
return -1; return -1;
} }
JSValue JS_NewObjectClass(JSContext *ctx, int class_id) JSValue JS_NewObjectClass(JSContext *ctx, JSClassID class_id)
{ {
return JS_NewObjectProtoClass(ctx, ctx->class_proto[class_id], class_id); return JS_NewObjectProtoClass(ctx, ctx->class_proto[class_id], class_id);
} }