JsTerminationReason Enum

Why the engine stopped a script.

public enum JsTerminationReason

Fields

NameValueDescription
Canceled0The execution was canceled (the cancellation token of the engine).
Timeout1The script ran longer than JsEngineOptions.Timeout.
MemoryLimit2The script allocated more than JsEngineOptions.MemoryLimit.
StatementLimit3The script executed more statements than JsEngineOptions.MaxStatements.