forked from Taritsyn/JavaScriptEngineSwitcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJsRuntimeAttributes.cs
More file actions
57 lines (49 loc) · 1.7 KB
/
JsRuntimeAttributes.cs
File metadata and controls
57 lines (49 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using System;
using System.Diagnostics.CodeAnalysis;
namespace JavaScriptEngineSwitcher.ChakraCore.JsRt
{
/// <summary>
/// Attributes of a runtime
/// </summary>
[Flags]
internal enum JsRuntimeAttributes
{
/// <summary>
/// No special attributes
/// </summary>
None = 0x00000000,
/// <summary>
/// The runtime will not do any work (such as garbage collection) on background threads
/// </summary>
DisableBackgroundWork = 0x00000001,
/// <summary>
/// The runtime should support reliable script interruption. This increases the number of
/// places where the runtime will check for a script interrupt request at the cost of a
/// small amount of runtime performance.
/// </summary>
AllowScriptInterrupt = 0x00000002,
/// <summary>
/// Host will call Idle, so enable idle processing. Otherwise, the runtime will manage
/// memory slightly more aggressively.
/// </summary>
EnableIdleProcessing = 0x00000004,
/// <summary>
/// Runtime will not generate native code
/// </summary>
DisableNativeCodeGeneration = 0x00000008,
/// <summary>
/// Using Eval or Function constructor will throw an exception
/// </summary>
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1650:ElementDocumentationMustBeSpelledCorrectly", Justification = "Eval is a valid function name.")]
DisableEval = 0x00000010,
/// <summary>
/// Runtime will enable all experimental features
/// </summary>
EnableExperimentalFeatures = 0x00000020,
/// <summary>
/// Calling <c>JsSetException</c> will also dispatch the exception to the script debugger
/// (if any) giving the debugger a chance to break on the exception
/// </summary>
DispatchSetExceptionsToDebugger = 0x00000040
}
}