Click or drag to resize

V8RuntimeViolationPolicy Enumeration

Defines options for V8 runtime behavior in response to a violation.

Namespace: Microsoft.ClearScript.V8
Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.4.5
Syntax
public enum V8RuntimeViolationPolicy
Members
Member nameValueDescription
Interrupt0 Specifies that the runtime is to interrupt script execution and throw a managed exception. Additionally, further script execution is to be blocked until the host sets the exceeded limit to a new value. This is the default behavior and the most effective option for preventing process termination.
Exception1 Specifies that the runtime is to throw a script exception and disable monitoring until the host sets the exceeded limit to a new value. This option is less effective at preventing process termination than Interrupt, but it is more friendly to asynchronous JavaScript, which relies on post-error processing for mechanisms such as promise rejection.
See Also