forked from Taritsyn/JavaScriptEngineSwitcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChakraCoreSettings.cs
More file actions
57 lines (52 loc) · 1.14 KB
/
ChakraCoreSettings.cs
File metadata and controls
57 lines (52 loc) · 1.14 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
namespace JavaScriptEngineSwitcher.ChakraCore
{
/// <summary>
/// Settings of the ChakraCore JS engine
/// </summary>
public sealed class ChakraCoreSettings
{
/// <summary>
/// Gets or sets a flag for whether to disable any background work (such as garbage collection)
/// on background threads
/// </summary>
public bool DisableBackgroundWork
{
get;
set;
}
/// <summary>
/// Gets or sets a flag for whether to disable native code generation
/// </summary>
public bool DisableNativeCodeGeneration
{
get;
set;
}
/// <summary>
/// Gets or sets a flag for whether to disable calls of <code>eval</code> function
/// </summary>
public bool DisableEval
{
get;
set;
}
/// <summary>
/// Gets or sets a flag for whether to enable all experimental features
/// </summary>
public bool EnableExperimentalFeatures
{
get;
set;
}
/// <summary>
/// Constructs instance of the ChakraCore settings
/// </summary>
public ChakraCoreSettings()
{
DisableBackgroundWork = false;
DisableNativeCodeGeneration = false;
DisableEval = false;
EnableExperimentalFeatures = false;
}
}
}