ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.V8
V8CacheKind Enumeration
V8CacheResult Enumeration
V8CpuProfile Class
V8CpuProfile.Node Class
V8CpuProfile.Node.HitLine Structure
V8CpuProfile.Sample Class
V8CpuProfileFlags Enumeration
V8GlobalFlags Enumeration
V8Runtime Class
V8RuntimeConstraints Class
V8RuntimeDebuggerEventArgs Class
V8RuntimeFlags Enumeration
V8RuntimeHeapInfo Class
V8RuntimeViolationPolicy Enumeration
V8Script Class
V8ScriptEngine Class
V8ScriptEngineFlags Enumeration
V8Settings Class

# 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.5.0
Syntax
C#
VB
C++
F#
Copy

    public enum V8RuntimeViolationPolicy

    Public Enumeration V8RuntimeViolationPolicy

    public enum class V8RuntimeViolationPolicy

    type V8RuntimeViolationPolicy

Members

Member name | Value | Description
--- | --- | ---
Interrupt | 0 | 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.
Exception | 1 | 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

#### Reference

Microsoft.ClearScript.V8 Namespace
MaxHeapSize
MaxRuntimeHeapSize

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft