V8ScriptEngineFlags Enumeration |
Defines options for initializing a new V8 JavaScript engine instance.
Namespace:
Microsoft.ClearScript.V8
Assembly:
ClearScript.V8 (in ClearScript.V8.dll) Version: 7.2.4
Syntax[FlagsAttribute]
public enum V8ScriptEngineFlags
<FlagsAttribute>
Public Enumeration V8ScriptEngineFlags
[FlagsAttribute]
public enum class V8ScriptEngineFlags
[<FlagsAttribute>]
type V8ScriptEngineFlags
Members
| Member name | Value | Description |
---|
| None | 0 |
Specifies that no options are selected.
|
| EnableDebugging | 1 |
Specifies that script debugging features are to be enabled.
|
| DisableGlobalMembers | 2 |
Specifies that support for GlobalMembers behavior is to be
disabled. This option yields a significant performance benefit for global item access.
|
| EnableRemoteDebugging | 4 |
Specifies that remote script debugging is to be enabled. This option is ignored if
EnableDebugging is not specified.
|
| AwaitDebuggerAndPauseOnStart | 8 |
Specifies that the script engine is to wait for a debugger connection and schedule a
pause before executing the first line of application script code. This option is
ignored if EnableDebugging is not specified.
|
| EnableDateTimeConversion | 16 |
Specifies that the script engine is to perform automatic conversion between
.NET DateTime objects and JavaScript
Date
objects. This conversion is bidirectional and lossy. A DateTime object
constructed from a JavaScript Date object always represents a Coordinated
Universal Timestamp (UTC) and has its Kind property set to
Utc.
|
| EnableDynamicModuleImports | 32 |
Specifies that
dynamic module imports
are to be enabled. This is an experimental feature and may be removed in a future release.
|
| MarshalUnsafeLongAsBigInt | 64 |
Specifies that long integers with values greater than
Number.MAX_SAFE_INTEGER
or less than
Number.MIN_SAFE_INTEGER
are to be marshaled as
BigInt.
This option is ignored if MarshalAllLongAsBigInt is specified.
|
| MarshalAllLongAsBigInt | 128 |
Specifies that all long integers are to be marshaled as
BigInt.
|
| EnableTaskPromiseConversion | 256 |
Specifies that the script engine is to perform automatic conversion between
.NET Task objects and JavaScript
promises.
This conversion is bidirectional and lossy. A Task object constructed from a
JavaScript promise always has a result type of Object.
|
| EnableValueTaskPromiseConversion | 512 |
Specifies that the script engine is to perform automatic conversion from
.NET ValueTask and ValueTaskTResult structures to JavaScript
promises.
This conversion is unidirectional and lossy. This option is ignored if
EnableTaskPromiseConversion is not specified.
|
| UseCaseInsensitiveMemberBinding | 1024 |
Specifies that access to host object and class members is to be case-insensitive. This
option can introduce ambiguity if the host resource has distinct members whose names
differ only in case, so it should be used with caution.
|
See Also