This commit is contained in:
2026-01-20 12:04:30 -06:00
parent 187879a7c6
commit 313a2e7eeb
8 changed files with 79 additions and 78 deletions

View File

@@ -491,7 +491,7 @@ static JSValue js_simplex_constructor(JSContext *js, JSValueConst new_target, in
CELL_USE_INIT(
QJSCLASSPREP_FUNCS(simplex);
JSValue ctor = JS_NewCFunction2(js, js_simplex_constructor, "simplex", 1, JS_CFUNC_constructor, 0);
JSValue ctor = JS_NewCFunction2(js, js_simplex_constructor, "simplex", 1, JS_CFUNC_generic, 0);
JSValue proto = JS_GetClassProto(js, js_simplex_id);
JS_SetConstructor(js, ctor, proto);
JS_FreeValue(js, proto);