Skip to main content

Module flags

Module flags 

Source

Constants§

ARGUMENTS
The function reads its actual arguments past its parameters (arguments or a rest parameter): entering it keeps the extra arguments above its registers.
ARROW
An arrow function: this is lexical, never a constructor.
ASYNC
An async function (with GENERATOR, an async generator).
BRAND
A class field or static initializer that brands its receiver with its home object’s private-method brand before it runs.
CLASS_CONSTRUCTOR
A class constructor: calling it without new throws.
CONSTRUCTOR
The function may be called with new.
DERIVED
A derived class constructor: no receiver is created; this is bound by super().
EVAL
The root of eval code: import() in it resolves against the code that called eval.
GENERATOR
A generator function.
MODULE
Module code.
NEW_TARGET
The function reads new.target: its first local, right after the parameters, receives it when it is entered by a construction.
PROTOTYPE
MakeClosure gives the function a prototype object (an ordinary function or a generator; class constructors get theirs from MakeClass).
SCRIPT
A script body.
STRICT
Strict-mode code: this is not coerced.