This document contains the contents of the specification as of commit d1e26b9181c1ee8612a885c470837152fe6830b5, and should only be used as a historical reference. This commit may not have even been merged into the specification.
Do not attempt to implement this version of the specification. Do not reference this version as authoritative in any way. Instead, see https://tc39.es/ecma262 for the living specification.
new
Operatorsuper
Keyword? :
),
)if
Statementdo
-while
Statementwhile
Statementfor
Statementfor
-in
, for
-of
, and for
-await
-of
Statementscontinue
Statementbreak
Statementreturn
Statementwith
Statementswitch
Statementthrow
Statementtry
Statementdebugger
Statement?
u
m
/
p
1-9
0
`
A
The WeakRef
extends
clause of a class definition. Subclass WeakRef
behaviour must include a super
call to the WeakRef
WeakRef.prototype
built-in methods.
This function performs the following steps when called:
The
The initial value of WeakRef.prototype
is the
This property has the attributes { [[Writable]]:
The WeakRef prototype object:
The initial value of WeakRef.prototype.constructor
is
This method performs the following steps when called:
If the
let target = { foo() {} };
let weakRef = new WeakRef(target);
// ... later ...
if (weakRef.deref()) {
weakRef.deref().foo();
}
In the above example, if the first deref does not evaluate to
The initial value of the
This property has the attributes { [[Writable]]:
The abstract operation WeakRefDeref takes argument weakRef (a
This abstract operation is defined separately from WeakRef.prototype.deref strictly to make it possible to succinctly define liveness.
A
The FinalizationRegistry
extends
clause of a class definition. Subclass FinalizationRegistry
behaviour must include a super
call to the FinalizationRegistry
FinalizationRegistry.prototype
built-in methods.
This function performs the following steps when called:
The
The initial value of FinalizationRegistry.prototype
is the
This property has the attributes { [[Writable]]:
The FinalizationRegistry prototype object:
The initial value of FinalizationRegistry.prototype.constructor
is
This method performs the following steps when called:
Based on the algorithms and definitions in this specification, cell.[[HeldValue]] is
This method performs the following steps when called:
The initial value of the
This property has the attributes { [[Writable]]: