From 1465c3cced54a23e5b9cc4bf5e026e008fda416b Mon Sep 17 00:00:00 2001 From: Daniel Ehrenberg Date: Tue, 4 Jun 2019 17:03:31 +0200 Subject: [PATCH] Normative Optional: Add WeakRef.prototype.constructor Fixes #131 --- spec/index.html | 13 +++++++++++++ spec/weak-ref.html | 12 ++++++++++++ 2 files changed, 25 insertions(+) diff --git a/spec/index.html b/spec/index.html index 0ee9952..6270374 100644 --- a/spec/index.html +++ b/spec/index.html @@ -8,6 +8,19 @@ copyright: proposal contributors: Dean Tribble, Till Schneidereit, Sathya Gunasekaran + diff --git a/spec/weak-ref.html b/spec/weak-ref.html index fa21751..faa910e 100644 --- a/spec/weak-ref.html +++ b/spec/weak-ref.html @@ -89,6 +89,18 @@

Properties of the WeakRef Prototype Object

  • does not have a [[Target]] internal slot.
  • + +

    WeakRef.prototype.constructor

    + +

    The initial value of `WeakRef.prototype.constructor` is the intrinsic object %WeakRef%.

    + +

    This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *true* }.

    + + + This section is to be treated identically to the "Annex B" of ECMA-262, but to be written in-line with the main specification. + +
    +

    WeakRef.prototype.deref ( )

    The following steps are taken: