JSDescriptor

Everything known about a compiled script or function that does not change per call: its code, its names, its flags and its nested functions. Built once by the code generator through Builder, then shared by every function object made from it.

Upstream also implements the debugger's DebuggableScript here. That interface is not ported; the same members exist as plain methods.

Types

Link copied to clipboard
class Builder<T : ScriptOrFn<T>>

Collects what the code generator learns, then makes the descriptor.

Properties

Link copied to clipboard
val arity: Int
Link copied to clipboard
val code: JSCode<T>?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

An async function or async generator (ECMAScript 2017, 14.7; ECMAScript 2018, 14.5).

Link copied to clipboard

An async function that is no generator, whose call returns a promise.

Link copied to clipboard

A class constructor, which [Call] refuses and [Construct] runs with class semantics.

Link copied to clipboard

The function that computes a class field's initial value.

Link copied to clipboard

A constructor the class did not write.

Link copied to clipboard

The constructor of a class with extends, whose this is only bound by super().

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

False when a nested function declaration (not expression) is named name.