JSFunctionUnsafeUtilExtension extension

Utility methods to call JSFunctions as constructors.

on

Methods

callAsConstructor<R>([JSAny? arg1, JSAny? arg2, JSAny? arg3, JSAny? arg4]) → R

Available on JSFunction, provided by the JSFunctionUnsafeUtilExtension extension

Calls this JSFunction as a constructor with up to four arguments.
callAsConstructorVarArgs<R extends JSObject>([List<JSAny?>? arguments]) → R

Available on JSFunction, provided by the JSFunctionUnsafeUtilExtension extension

Calls this JSFunction as a constructor with a variable number of arguments.