API reference / @jsprismarine/script-host / absentGlobals
absentGlobals
Interfaces
AbsentGlobal
Defined in: script-host/src/absentGlobals.ts:2
A global or a member that the pinned QuickJS defines and scripts on the pinned BDS cannot see.
Properties
path
readonlypath:string
Defined in: script-host/src/absentGlobals.ts:7
A property path from the global object, such as Set.prototype.union. A last segment written [Symbol.toStringTag] names a well-known symbol key.
AbsentPath
Defined in: script-host/src/absentGlobals.ts:11
An AbsentGlobal's path, split into the object that holds the property and its key.
Properties
key
readonlykey:string
Defined in: script-host/src/absentGlobals.ts:15
The property name, or the well-known symbol's name when symbol is true.
owner
readonlyowner: readonlystring[]
Defined in: script-host/src/absentGlobals.ts:13
The property names from the global object to the holder; empty for a global.
symbol
readonlysymbol:boolean
Defined in: script-host/src/absentGlobals.ts:17
Whether key names a well-known symbol, such as toStringTag for Symbol.toStringTag.
Functions
absentGlobals()
absentGlobals(): readonly
AbsentGlobal[]
Defined in: script-host/src/absentGlobals.ts:90
The globals and members the C layer removes from every context.
Returns
readonly AbsentGlobal[]
The list, in the order the C layer reads it.
splitAbsentPath()
splitAbsentPath(
path):AbsentPath
Defined in: script-host/src/absentGlobals.ts:99
Splits a path into the property names that lead to its holder and its key.
Parameters
path
string
A path in AbsentGlobal.path's form.
Returns
The holder's names from the global object, and the key.