this 키워드(The this Keyword)new 연산자(The new Operator)super 키워드(The super Keyword)? : ), )if 문do-while 문while 문for 문for-in, for-of, for-await-of 문continue 문break 문return 문with 문switch 문throw 문try 문debugger 문?um/p1-90`WeakRef
extends 절 값으로 사용할 수 있다. 지정된 WeakRef 동작을 상속하려는 서브클래스 WeakRef.prototype 내장 메서드를 지원하는 데 필요한 내부 상태로 서브클래스 인스턴스를 생성·초기화하기 위해 WeakRef super 호출을 포함해야 한다.
이 함수는 호출 시 다음 단계를 수행한다:
WeakRef.prototype 의 초기 값은
이 프로퍼티는 { [[Writable]]:
WeakRef 프로토타입 객체:
WeakRef.prototype.constructor 의 초기 값은
이 메서드는 호출 시 다음 단계를 수행한다:
let target = { foo() {} };
let weakRef = new WeakRef(target);
// ... later ...
if (weakRef.deref()) {
weakRef.deref().foo();
}
위 예에서 첫 번째 deref 가
이 프로퍼티는 { [[Writable]]:
The abstract operation WeakRefDeref takes argument weakRef (a
이 추상 연산은 liveness 를 간단히 정의할 수 있도록 WeakRef.prototype.deref 와 분리되어 정의된다.
FinalizationRegistry
extends 절 값으로 사용할 수 있다. 지정된 FinalizationRegistry 동작을 상속하려는 서브클래스 FinalizationRegistry.prototype 내장 메서드를 지원하는 데 필요한 내부 상태로 서브클래스 인스턴스를 생성·초기화하기 위해 FinalizationRegistry super 호출을 포함해야 한다.
이 함수는 호출 시 다음 단계를 수행한다:
FinalizationRegistry.prototype 의 초기 값은
이 프로퍼티는 { [[Writable]]:
FinalizationRegistry 프로토타입 객체:
FinalizationRegistry.prototype.constructor 의 초기 값은
이 메서드는 호출 시 다음 단계를 수행한다:
이 메서드는 호출 시 다음 단계를 수행한다:
이 프로퍼티는 { [[Writable]]: