forked from Taritsyn/JavaScriptEngineSwitcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJurassicConfiguration.cs
More file actions
42 lines (39 loc) · 1.22 KB
/
JurassicConfiguration.cs
File metadata and controls
42 lines (39 loc) · 1.22 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
namespace JavaScriptEngineSwitcher.Jurassic.Configuration
{
using System.Configuration;
/// <summary>
/// Configuration settings of Jurassic JavaScript engine
/// </summary>
public sealed class JurassicConfiguration : ConfigurationSection
{
/// <summary>
/// Gets or sets a flag for whether to enable script debugging features
/// (allows a generation of debug information)
/// </summary>
[ConfigurationProperty("enableDebugging", DefaultValue = false)]
public bool EnableDebugging
{
get { return (bool)this["enableDebugging"]; }
set { this["enableDebugging"] = value; }
}
/// <summary>
/// Gets or sets a flag for whether to disassemble any generated IL
/// and store it in the associated function
/// </summary>
[ConfigurationProperty("enableIlAnalysis", DefaultValue = false)]
public bool EnableIlAnalysis
{
get { return (bool)this["enableIlAnalysis"]; }
set { this["enableIlAnalysis"] = value; }
}
/// <summary>
/// Gets or sets a flag for whether to allow run the script in strict mode
/// </summary>
[ConfigurationProperty("strictMode", DefaultValue = false)]
public bool StrictMode
{
get { return (bool)this["strictMode"]; }
set { this["strictMode"] = value; }
}
}
}