constructors
This commit is contained in:
@@ -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;
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user