Skip to content

JSValueScopeType enumeration

Indicates the type of JSValueScope within the hierarchy of scopes.

C#
public enum JSValueScopeType

Values

namevaluedescription
NoContext0A limited scope without any JSRuntimeContext or JSModuleContext. Used by the Node API .NET native host to set up callbacks before the managed host is initialized.
Root1A parent scope shared by all (non-AOT) .NET modules loaded in the same process. It has a JSRuntimeContext but no JSModuleContext.
Module2A scope specific to each module. It inherits the JSRuntimeContext from the root scope, and has a unique JSModuleContext.
Callback3Callback scope within a module; inherits context from the module.
Handle4Handle scope within a callback; inherits context from the module.
Escapable5Escapable handle scope within a callback; inherits context from the module.

See Also

Released under the MIT license