Environment that resolves values using object prototype chain.

Implements

Constructors

Properties

Accessors

Methods

Constructors

Properties

binds: Bindings
parent: null | ProtoChainEnv = null

Returns the parent env scope, or null if the env is the global scope.

Accessors

  • get async(): boolean
  • Indicates if the env is async.

    Returns boolean

  • set async(isAsync): void
  • Indicates if the env is async.

    Parameters

    • isAsync: boolean

    Returns void

  • get fn(): boolean
  • Indicates if current scope is within a function.

    Returns boolean

  • set fn(isFn): void
  • Indicates if current scope is within a function.

    Parameters

    • isFn: boolean

    Returns void

Methods

  • Sets a variable.

    Type Parameters

    Parameters

    • name: string
    • value: V

    Returns V

  • Sets a variable on current scope.

    Type Parameters

    Parameters

    • name: string
    • value: V
    • readOnly: boolean = false

    Returns V

Generated using TypeDoc