-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathJurassicSettings.cs
More file actions
68 lines (62 loc) · 1.58 KB
/
JurassicSettings.cs
File metadata and controls
68 lines (62 loc) · 1.58 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
58
59
60
61
62
63
64
65
66
67
68
using System;
namespace JavaScriptEngineSwitcher.Jurassic
{
/// <summary>
/// Settings of the Jurassic JS engine
/// </summary>
public sealed class JurassicSettings
{
/// <summary>
/// Gets or sets a flag for whether to enable conversion of host collections,
/// that are passed or returned to script code, to script arrays
/// </summary>
/// <remarks>
/// This property does not allow the embedding of host collections by
/// using a <see cref="JavaScriptEngineSwitcher.Core.IJsEngine.EmbedHostObject"/>
/// method, it only affects the internal mechanisms of the Jurassic library.
/// </remarks>
public bool EnableHostCollectionsEmbeddingByValue
{
get;
set;
}
#if !NETSTANDARD2_0
/// <summary>
/// Gets or sets a flag for whether to enable script debugging features
/// (allows a generation of debug information)
/// </summary>
[Obsolete("Since the Jurassic version 3.2.1, debugging is no longer supported.")]
public bool EnableDebugging
{
get;
set;
}
#endif
/// <summary>
/// Gets or sets a flag for whether to disassemble any generated IL
/// and store it in the associated function
/// </summary>
public bool EnableIlAnalysis
{
get;
set;
}
/// <summary>
/// Gets or sets a flag for whether to allow run the script in strict mode
/// </summary>
public bool StrictMode
{
get;
set;
}
/// <summary>
/// Constructs an instance of the Jurassic settings
/// </summary>
public JurassicSettings()
{
EnableHostCollectionsEmbeddingByValue = false;
EnableIlAnalysis = false;
StrictMode = false;
}
}
}