@@ -19,39 +19,56 @@ public bool AwaitDebuggerAndPauseOnStart
19
19
}
20
20
21
21
/// <summary>
22
- /// Gets or sets a flag for whether to enable script debugging features
23
- /// (allows a TCP-based debugging)
22
+ /// Gets or sets a TCP port on which to listen for a debugger connection
24
23
/// </summary>
25
- public bool EnableDebugging
24
+ public ushort DebugPort
26
25
{
27
26
get ;
28
27
set ;
29
28
}
30
29
31
30
/// <summary>
32
- /// Gets or sets a flag for whether to enable remote script debugging.
33
- /// This property is ignored if value of the <see cref="EnableDebugging"/>
34
- /// property is false.
31
+ /// Gets or sets a flag for whether to disable dynamic method binding
35
32
/// </summary>
36
- public bool EnableRemoteDebugging
33
+ /// <remarks>
34
+ /// <para>
35
+ /// When this property is set to <c>true</c>, the script engine bypasses the default method
36
+ /// binding algorithm and uses reflection-based method binding instead. This approach
37
+ /// abandons support for generic type inference and other features, but it avoids engaging
38
+ /// the dynamic infrastructure.
39
+ /// </para>
40
+ /// </remarks>
41
+ public bool DisableDynamicBinding
37
42
{
38
43
get ;
39
44
set ;
40
45
}
41
46
42
47
/// <summary>
43
- /// Gets or sets a TCP port on which to listen for a debugger connection
48
+ /// Gets or sets a flag for whether to disable global members
44
49
/// </summary>
45
- public ushort DebugPort
50
+ public bool DisableGlobalMembers
46
51
{
47
52
get ;
48
53
set ;
49
54
}
50
55
51
56
/// <summary>
52
- /// Gets or sets a flag for whether to disable global members
57
+ /// Gets or sets a flag for whether to enable script debugging features
58
+ /// (allows a TCP-based debugging)
53
59
/// </summary>
54
- public bool DisableGlobalMembers
60
+ public bool EnableDebugging
61
+ {
62
+ get ;
63
+ set ;
64
+ }
65
+
66
+ /// <summary>
67
+ /// Gets or sets a flag for whether to enable remote script debugging.
68
+ /// This property is ignored if value of the <see cref="EnableDebugging"/>
69
+ /// property is false.
70
+ /// </summary>
71
+ public bool EnableRemoteDebugging
55
72
{
56
73
get ;
57
74
set ;
@@ -195,10 +212,11 @@ public UIntPtr MaxStackUsage
195
212
public V8Settings ( )
196
213
{
197
214
AwaitDebuggerAndPauseOnStart = false ;
198
- EnableDebugging = false ;
199
- EnableRemoteDebugging = false ;
200
215
DebugPort = 9222 ;
216
+ DisableDynamicBinding = false ;
201
217
DisableGlobalMembers = false ;
218
+ EnableDebugging = false ;
219
+ EnableRemoteDebugging = false ;
202
220
HeapExpansionMultiplier = 0 ;
203
221
HeapSizeSampleInterval = TimeSpan . Zero ;
204
222
MaxArrayBufferAllocation = ulong . MaxValue ;
0 commit comments