callConstructor2 method

JSValue callConstructor2(
  1. JSValue newTarget, {
  2. List<JSValue>? argv,
  3. bool autoDispose = true,
})

Implementation

JSValue callConstructor2(
  JSValue newTarget, {
  List<JSValue>? argv,
  bool autoDispose = true,
}) {
  argv ??= [];
  return JSValue.ptr(
    _ctx,
    JS_CallConstructor2(
      _ctx.ref,
      _ref.ref,
      newTarget.ref.ref,
      argv.length,
      argv.ref,
    ),
    autoDispose: autoDispose,
  );
}