V8FastHostFunction.VerifyConstructorCall Method |
Verifies that a fast host function was invoked as a constructor and not as a function.
Namespace: Microsoft.ClearScript.V8.FastProxyAssembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.0
Syntaxpublic static void VerifyConstructorCall(
bool asConstructor
)
Public Shared Sub VerifyConstructorCall (
asConstructor As Boolean
)
public:
static void VerifyConstructorCall(
bool asConstructor
)
static member VerifyConstructorCall :
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 false. It is intended for use within fast host function
invocation callbacks.
See Also