Class: Frame

lib/core/expression/evaluator~Frame(parent, bindings)

A chain of name bindings.

Arrow-function parameters and nothing else live here; everything else resolves against the scope the caller supplied. Keeping the two separate is what stops a lambda parameter from silently writing to component state.

Constructor

new Frame(parent, bindings)

Parameters:
Name Type Description
parent Frame | null

The enclosing frame.

bindings Object:.<string:, any:>

Names bound by this frame.

Source:

Methods

lookup(name) → {Frame|null}

Finds the frame binding a name.

Parameters:
Name Type Description
name string

The name to resolve.

Source:
Returns:

The binding frame, or null.

Type
Frame | null