JSCFunctionListEntry.defAlias constructor

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

Implementation

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