JSCFunctionListEntry.defAliasBase constructor

JSCFunctionListEntry.defAliasBase(
  1. JSContext ctx,
  2. String name,
  3. String from,
  4. int base, {
  5. bool autoDispose = true,
})

Implementation

factory JSCFunctionListEntry.defAliasBase(
  JSContext ctx,
  String name,
  String from,
  int base, {
  bool autoDispose = true,
}) {
  return JSCFunctionListEntry._(
    ctx,
    name: name,
    propFlags: JSProp.WRITABLE | JSProp.CONFIGURABLE,
    defType: JSDef.ALIAS,
    magic: 0,
    union: JSCFuntionListEntryUnion(
      alias: JSCFunctionListEntryAlias(from, base),
    ),
    autoDispose: autoDispose,
  );
}