constructors

This commit is contained in:
2026-01-21 19:41:20 -06:00
parent f7be9c3344
commit dd31a1c2b0
4 changed files with 0 additions and 23 deletions

View File

@@ -492,8 +492,5 @@ 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_generic, 0);
JSValue proto = JS_GetClassProto(js, js_simplex_id);
JS_SetConstructor(js, ctor, proto);
JS_FreeValue(js, proto);
return ctor;
)