callAsFunction(this:arguments:)

Call this function with given arguments and binding given this as context.

JSThrowingFunction.swift:19
@discardableResult func callAsFunction(this: JSObject? = nil, arguments: [ConvertibleToJSValue]) throws -> JSValue

Parameters

this

The value to be passed as the this parameter to this function.

arguments

Arguments to be passed to this function.

Returns

The result of this call.