JSCFunctionListEntry.defCFuncMagic constructor
JSCFunctionListEntry.defCFuncMagic(})
Implementation
factory JSCFunctionListEntry.defCFuncMagic(
JSContext ctx,
String name, {
JSCFunctionGenericMagicFunction? func,
int magic = 0,
int argc = 0,
bool autoDispose = true,
}) {
return JSCFunctionListEntry._(
ctx,
name: name,
propFlags: JSProp.WRITABLE | JSProp.CONFIGURABLE,
defType: JSDef.CFUNC,
magic: 0,
union: JSCFuntionListEntryUnion(
func: JSCFunctionListEntryFunc(
argc,
JSCFunctionEnum.JS_CFUNC_generic_magic,
JSCFunctionType.defGenericMagic(ctx, func: func),
),
),
autoDispose: autoDispose,
);
}