callAsConstructor method
Implementation
JSObject callAsConstructor({List<JSValue>? arguments}) {
final JSException exception = JSException.create(_context);
final JSObjectRef objectRef = js_bd.JSObjectCallAsConstructor(_context.ref, _ref, arguments?.length ?? 0, arguments?.ref ?? nullptr, exception.ref);
if (exception.shouldThrow) {
throw exception.error;
}
return JSObject(_context, objectRef);
}