V8FastHostFunction.VerifyFunctionCall Method |
Verifies that a fast host function was invoked as a function and not as a constructor.
Namespace: Microsoft.ClearScript.V8.FastProxyAssembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.0
Syntaxpublic static void VerifyFunctionCall(
bool asConstructor
)
Public Shared Sub VerifyFunctionCall (
asConstructor As Boolean
)
public:
static void VerifyFunctionCall(
bool asConstructor
)
static member VerifyFunctionCall :
asConstructor : bool -> unit
Parameters
- asConstructor Boolean
- True if the function was invoked as a constructor, false otherwise.
Remarks
This is a simple utility method that checks asConstructor and throws
an exception if it is true. It is intended for use within fast host function
invocation callbacks.
See Also