JSFunctionUnsafeUtilExtension extension

Utility methods to call JSFunctions as constructors.

on

Methods

callAsConstructor<R>([JSAny? arg1, JSAny? arg2, JSAny? arg3, JSAny? arg4]) → R
Calls this JSFunction as a constructor with up to four arguments.
callAsConstructorVarArgs<R extends JSObject>([List<JSAny?>? arguments]) → R
Calls this JSFunction as a constructor with a variable number of arguments.