From 71a0f26c7c4c451ea9e15b461e604e75be050137 Mon Sep 17 00:00:00 2001 From: ExE Boss <3889017+ExE-Boss@users.noreply.github.com> Date: Tue, 23 Jun 2020 15:00:00 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Editorial:=20Use=C2=A0dotted=C2=A0intrinsic?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spec.html | 76 ++++++++++++++++++++++++++++++------------------------- 1 file changed, 42 insertions(+), 34 deletions(-) diff --git a/spec.html b/spec.html index 665fffe..c143425 100644 --- a/spec.html +++ b/spec.html @@ -12,32 +12,30 @@ - - - - - - - - - - - - - - - - - - - -
Intrinsic NameGlobal NameECMAScript Language Association
%Realm%Realm
%RealmPrototype%Realm.prototype
-
+ +

Well-known intrinsic objects

+ + + + + + + + + + + + + + +
Intrinsic NameGlobal NameECMAScript Language Association
%Realm%`Realm`The Realm constructor ()
+
+

Realm Objects

- +

The Realm Constructor

The Realm constructor:

    @@ -53,7 +51,7 @@

    Realm ()

    When the `Realm` function is called with no arguments, the following steps are taken:

    1. If NewTarget is *undefined*, throw a *TypeError* exception. - 1. Let _O_ be ? OrdinaryCreateFromConstructor(NewTarget, "%RealmPrototype%", « [[Realm]], [[ExecutionContext]] »). + 1. Let _O_ be ? OrdinaryCreateFromConstructor(NewTarget, "%Realm.prototype%", « [[Realm]], [[ExecutionContext]] »). 1. Let _realmRec_ be CreateRealm(). 1. Set _O_.[[Realm]] to _realmRec_. 1. Let _context_ be a new execution context. @@ -71,18 +69,32 @@

    Realm ()

    Properties of the Realm Constructor

    +

    The Realm constructor:

    +
      +
    • as a [[Prototype]] internal slot whose value is %Function.prototype%.
    • +
    • has the following properties:
    • +
    -

    The value of the [[Prototype]] internal slot of the *Realm* constructor is the intrinsic object %FunctionPrototype%.

    + +

    Realm.prototype

    +

    The initial value of *Realm.prototype* is %Realm.prototype%.

    +

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

    +

    Properties of the Realm Prototype Object

    +

    The Realm prototype object:

    +
      +
    • is the intrinsic object %Realm.prototype%.
    • +
    • is the initial value of the "*prototype*" property of %Realm%.
    • +
    • is an ordinary object.
    • +
    • is not a Realm instance and does not have a [[Realm]] internal slot.
    • +

    Realm.prototype.import ( _specifier_ )

    - -

    The following steps are taken:

    - +

    The following steps are performed:

    1. Let _O_ be *this* value. 1. Perform ? RequireInternalSlot(_O_, [[Realm]]). @@ -108,7 +120,6 @@

    Realm.prototype.import ( _specifier_ )

    get Realm.prototype.globalThis

    -

    Realm.prototype.globalThis is an accessor property whose set accessor function is *undefined*. Its get accessor function performs the following steps:

    @@ -120,19 +131,16 @@

    get Realm.prototype.globalThis

    Realm.prototype [ @@toStringTag ]

    -

    The initial value of the @@toStringTag property is the String value "Realm".

    - -

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

    +

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

    Properties of Realm Instances

    +

    Realm instances are ordinary objects that inherit properties from the Realm prototype object (the intrinsic, %Realm.prototype%). Realm instances are initially created with the internal slots described in .

    -

    Realm instances are ordinary objects that inherit properties from the Realm prototype object (the intrinsic, %RealmPrototype%). Realm instances are initially created with the internal slots described in .

    - - + From d35f67518fb567335e0cc3057d8f1c4991e9ab0d Mon Sep 17 00:00:00 2001 From: ExE Boss <3889017+ExE-Boss@users.noreply.github.com> Date: Tue, 23 Jun 2020 19:45:00 +0200 Subject: [PATCH 2/2] =?UTF-8?q?fixup!=20Editorial:=20Use=C2=A0dotted=C2=A0?= =?UTF-8?q?intrinsics?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spec.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.html b/spec.html index c143425..d7bb3cc 100644 --- a/spec.html +++ b/spec.html @@ -13,7 +13,7 @@ -

    Well-known intrinsic objects

    +

    Well-known intrinsic objects