Skip to content

Commit

Permalink
Fix var name
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Oct 6, 2023
1 parent d5e032e commit 21b4414
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/image.c
Expand Up @@ -254,11 +254,11 @@ void nx_init_image(JSContext *ctx, JSValueConst native_obj)
JSRuntime *rt = JS_GetRuntime(ctx);

JS_NewClassID(&nx_image_class_id);
JSClassDef font_face_class = {
JSClassDef image_class = {
"nx_image_t",
.finalizer = finalizer_image,
};
JS_NewClass(rt, nx_image_class_id, &font_face_class);
JS_NewClass(rt, nx_image_class_id, &image_class);

JS_SetPropertyFunctionList(ctx, native_obj, function_list, countof(function_list));
}

0 comments on commit 21b4414

Please sign in to comment.