Skip to content

API reference / @jsprismarine/script-host / values / ScriptHandle

Class: ScriptHandle ​

Defined in: script-host/src/values.ts:24

A JavaScript value that stays in its engine, such as an object or a function. The host refers to it by handle until it frees it.

Constructors ​

Constructor ​

new ScriptHandle(id): ScriptHandle

Defined in: script-host/src/values.ts:28

Parameters ​

id ​

number

Returns ​

ScriptHandle

Properties ​

id ​

readonly id: number

Defined in: script-host/src/values.ts:26

The engine's handle, a positive integer.