callFunction method

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

Implementation

JSValue callFunction({
  List<JSValue>? argv,
  JSValue? thiz,
  bool autoDispose = true,
}) {
  argv ??= [];
  thiz ??= JSValue.makeUndefined(_ctx);
  return JSValue.ptr(
    _ctx,
    JS_Call(_ctx.ref, _ref.ref, thiz.ref.ref, argv.length, argv.ref),
  );
}