[API reference](https://jsprismarine.dev/api/index.md) / [@jsprismarine/script-host](https://jsprismarine.dev/api/@jsprismarine/script-host/index.md) / absentGlobals

# absentGlobals

## Interfaces

### AbsentGlobal

Defined in: [script-host/src/absentGlobals.ts:2](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/absentGlobals.ts#L2)

A global or a member that the pinned QuickJS defines and scripts on the pinned BDS cannot see.

#### Properties

##### path

> `readonly` **path**: `string`

Defined in: [script-host/src/absentGlobals.ts:7](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/absentGlobals.ts#L7)

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](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/absentGlobals.ts#L11)

An [AbsentGlobal](#absentglobal)'s path, split into the object that holds the property and its key.

#### Properties

##### key

> `readonly` **key**: `string`

Defined in: [script-host/src/absentGlobals.ts:15](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/absentGlobals.ts#L15)

The property name, or the well-known symbol's name when [symbol](#symbol) is true.

##### owner

> `readonly` **owner**: readonly `string`[]

Defined in: [script-host/src/absentGlobals.ts:13](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/absentGlobals.ts#L13)

The property names from the global object to the holder; empty for a global.

##### symbol

> `readonly` **symbol**: `boolean`

Defined in: [script-host/src/absentGlobals.ts:17](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/absentGlobals.ts#L17)

Whether [key](#key) names a well-known symbol, such as `toStringTag` for `Symbol.toStringTag`.

## Functions

### absentGlobals()

> **absentGlobals**(): readonly [`AbsentGlobal`](#absentglobal)[]

Defined in: [script-host/src/absentGlobals.ts:90](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/absentGlobals.ts#L90)

The globals and members the C layer removes from every context.

#### Returns

readonly [`AbsentGlobal`](#absentglobal)[]

The list, in the order the C layer reads it.

***

### splitAbsentPath()

> **splitAbsentPath**(`path`): [`AbsentPath`](#absentpath)

Defined in: [script-host/src/absentGlobals.ts:99](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/absentGlobals.ts#L99)

Splits a path into the property names that lead to its holder and its key.

#### Parameters

##### path

`string`

A path in [AbsentGlobal.path](#path)'s form.

#### Returns

[`AbsentPath`](#absentpath)

The holder's names from the global object, and the key.
