forked from Taritsyn/JavaScriptEngineSwitcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNiLSettings.cs
More file actions
60 lines (53 loc) · 1.08 KB
/
NiLSettings.cs
File metadata and controls
60 lines (53 loc) · 1.08 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
using System;
using OriginalDebuggerCallback = NiL.JS.Core.DebuggerCallback;
namespace JavaScriptEngineSwitcher.NiL
{
/// <summary>
/// Settings of the NiL JS engine
/// </summary>
public sealed class NiLSettings
{
/// <summary>
/// Gets or sets a debugger callback
/// </summary>
public OriginalDebuggerCallback DebuggerCallback
{
get;
set;
}
/// <summary>
/// Gets or sets a flag for whether to enable script debugging features
/// </summary>
public bool EnableDebugging
{
get;
set;
}
/// <summary>
/// Gets or sets a local time zone for the <c>Date</c> objects in the script
/// </summary>
public TimeZoneInfo LocalTimeZone
{
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 NiL settings
/// </summary>
public NiLSettings()
{
DebuggerCallback = null;
EnableDebugging = false;
LocalTimeZone = TimeZoneInfo.Local;
StrictMode = false;
}
}
}