From 90b518419788c345b4c56b75bfc7ff0d06781e10 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Fri, 24 Jan 2025 17:32:27 +0100 Subject: [PATCH] Meta: address Bikeshed errors --- index.bs | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/index.bs b/index.bs index c3c61084..ab81c07c 100644 --- a/index.bs +++ b/index.bs @@ -5065,7 +5065,7 @@ over just using {{SyntaxError!!exception}} to refer to the {{DOMException}}. [[D "IndexSizeError" - Deprecated. Use {{RangeError}} instead. + Deprecated. Use {{RangeError}} instead. INDEX_SIZE_ERR (1) @@ -5075,7 +5075,7 @@ over just using {{SyntaxError!!exception}} to refer to the {{DOMException}}. [[D "WrongDocumentError" - The object is in the wrong [=document=]. [[DOM]] + The object is in the wrong [=/document=]. [[DOM]] WRONG_DOCUMENT_ERR (4) @@ -7649,7 +7649,7 @@ value when its bit pattern is interpreted as an [=/64-bit unsigned integer=].

- + The result of [=converted to a JavaScript value|converting=] an IDL {{DOMString}} value to a JavaScript value is the String @@ -7675,7 +7675,7 @@ value when its bit pattern is interpreted as an [=/64-bit unsigned integer=].

- + The result of [=converted to a JavaScript value|converting=] an IDL {{ByteString}} value to a JavaScript value is a String @@ -8249,7 +8249,7 @@ IDL [=promise type=] values are represented by JavaScript [=PromiseCapability=] Promise<T> in a [=realm=] |realm|, perform the following steps: - 1. Let |constructor| be |realm|.\[[Intrinsics]].[[{{%Promise%}}]]. + 1. Let |constructor| be |realm|.\[[Intrinsics]].\[[{{%Promise%}}]]. 1. Return [=?=] [$NewPromiseCapability$](|constructor|). @@ -8261,7 +8261,7 @@ IDL [=promise type=] values are represented by JavaScript [=PromiseCapability=] 1. Let |value| be the result of [=converted to a JavaScript value|converting=] |x| to a JavaScript value. - 1. Let |constructor| be |realm|.\[[Intrinsics]].[[{{%Promise%}}]]. + 1. Let |constructor| be |realm|.\[[Intrinsics]].\[[{{%Promise%}}]]. 1. Let |promiseCapability| be [=?=] [$NewPromiseCapability$](|constructor|). 1. Perform [=!=] [$Call$](|promiseCapability|.\[[Resolve]], undefined, « |value| »). @@ -8274,7 +8274,7 @@ IDL [=promise type=] values are represented by JavaScript [=PromiseCapability=] Promise<T>, with reason |r| (a JavaScript value) in a [=realm=] |realm|, perform the following steps: - 1. Let |constructor| be |realm|.\[[Intrinsics]].[[{{%Promise%}}]]. + 1. Let |constructor| be |realm|.\[[Intrinsics]].\[[{{%Promise%}}]]. 1. Let |promiseCapability| be [=?=] [$NewPromiseCapability$](|constructor|). 1. Perform [=!=] [$Call$](|promiseCapability|.\[[Reject]], undefined, « |r| »). @@ -8325,7 +8325,7 @@ IDL [=promise type=] values are represented by JavaScript [=PromiseCapability=] [=a promise rejected with=] |reason|. 1. Return |result|, [=converted to a JavaScript value=]. 1. Let |onRejected| be [$CreateBuiltinFunction$](|onRejectedSteps|, « »): - 1. Let |constructor| be |promise|.\[[Promise]].\[[Realm]].\[[Intrinsics]].[[{{%Promise%}}]]. + 1. Let |constructor| be |promise|.\[[Promise]].\[[Realm]].\[[Intrinsics]].\[[{{%Promise%}}]]. 1. Let |newCapability| be [=?=] [$NewPromiseCapability$](|constructor|). Note: Not all callers will use the returned {{Promise}}. Implementations might wish to @@ -8900,7 +8900,7 @@ a reference to the same object that the IDL value represents. |bytes| in a [=realm=] |realm|: 1. Let |jsArrayBuffer| be [=?=] - [$AllocateArrayBuffer$](|realm|.\[[Intrinsics]].[[{{%ArrayBuffer%}}]], |bytes|'s + [$AllocateArrayBuffer$](|realm|.\[[Intrinsics]].\[[{{%ArrayBuffer%}}]], |bytes|'s [=byte sequence/length=]). 1. Let |arrayBuffer| be the result of [=converted to an IDL value|converting=] |jsArrayBuffer| to an IDL value of type {{ArrayBuffer}}. @@ -8913,7 +8913,7 @@ a reference to the same object that the IDL value represents. [=byte sequence=] |bytes| in a [=realm=] |realm|: 1. Let |jsSharedArrayBuffer| be [=?=] - [$AllocateSharedArrayBuffer$](|realm|.\[[Intrinsics]].[[{{%SharedArrayBuffer%}}]], |bytes|'s + [$AllocateSharedArrayBuffer$](|realm|.\[[Intrinsics]].\[[{{%SharedArrayBuffer%}}]], |bytes|'s [=byte sequence/length=]). 1. Let |sharedArrayBuffer| be the result of [=converted to an IDL value|converting=] |jsSharedArrayBuffer| to an IDL value of type {{SharedArrayBuffer}}. @@ -9089,7 +9089,7 @@ a reference to the same object that the IDL value represents. 1. Perform [=?=] [$DetachArrayBuffer$](|jsArrayBuffer|). 1. If |targetRealm| is not given, let |targetRealm| be the [=current realm=]. 1. Let |jsTransferred| be [=?=] - [$AllocateArrayBuffer$](|targetRealm|.\[[Intrinsics]].[[{{%ArrayBuffer%}}]], 0). + [$AllocateArrayBuffer$](|targetRealm|.\[[Intrinsics]].\[[{{%ArrayBuffer%}}]], 0). 1. Set |jsTransferred|.\[[ArrayBufferData]] to |arrayBufferData|. 1. Set |jsTransferred|.\[[ArrayBufferByteLength]] to |arrayBufferByteLength|. 1. Return the result of [=converted to an IDL value|converting=] |jsTransferred| to an IDL @@ -11561,7 +11561,7 @@ default interfaces do not have such steps. 1. Assert: |O| is an object that [=implements=] |I|. 1. Assert: |O|.\[[Realm]] is |realm|. 1. Return |O|. - 1. Let |constructorProto| be |realm|.\[[Intrinsics]].[[{{%Function.prototype%}}]]. + 1. Let |constructorProto| be |realm|.\[[Intrinsics]].\[[{{%Function.prototype%}}]]. 1. If |I| inherits from some other interface |P|, then set |constructorProto| to the [=interface object=] of |P| in |realm|. 1. Let |F| be CreateBuiltinFunction(|steps|, « \[[Unforgeables]] », @@ -11662,8 +11662,8 @@ with the [{{LegacyNoInterfaceObject}}] [=extended attribute=]. then set |proto| to the [=interface prototype object=] in |realm| of that [=inherited interface=]. 1. Otherwise, if |interface| is the {{DOMException}} [=interface=], - then set |proto| to |realm|.\[[Intrinsics]].[[{{%Error.prototype%}}]]. - 1. Otherwise, set |proto| to |realm|.\[[Intrinsics]].[[{{%Object.prototype%}}]]. + then set |proto| to |realm|.\[[Intrinsics]].\[[{{%Error.prototype%}}]]. + 1. Otherwise, set |proto| to |realm|.\[[Intrinsics]].\[[{{%Object.prototype%}}]]. 1. Assert: |proto| [=is an Object=]. 1. Let |interfaceProtoObj| be null. 1. If |realm|'s [=is global prototype chain mutable=] is true, then: @@ -11761,7 +11761,7 @@ for that interface on which named properties are exposed. 1. Let |proto| be null. 1. If |interface| is declared to inherit from another interface, then set |proto| to the [=interface prototype object=] in |realm| for the [=inherited interface=]. - 1. Otherwise, set |proto| to |realm|.\[[Intrinsics]].[[{{%Object.prototype%}}]]. + 1. Otherwise, set |proto| to |realm|.\[[Intrinsics]].\[[{{%Object.prototype%}}]]. 1. Let |obj| be [$MakeBasicObject$](« \[[Prototype]], \[[Extensible]] »). 1. Set |obj|.\[[GetOwnProperty]] as specified in [[#named-properties-object-getownproperty]]. 1. Set |obj|.\[[DefineOwnProperty]] as specified in [[#named-properties-object-defineownproperty]]. @@ -14531,7 +14531,7 @@ The characteristics of a namespace object are described in [[#namespace-object]] The namespace object for a given [=namespace=] |namespace| and [=realm=] |realm| is created as follows: - 1. Let |namespaceObject| be [$OrdinaryObjectCreate$](|realm|.\[[Intrinsics]].[[{{%Object.prototype%}}]]). + 1. Let |namespaceObject| be [$OrdinaryObjectCreate$](|realm|.\[[Intrinsics]].\[[{{%Object.prototype%}}]]). 1. [=Define the regular attributes=] of |namespace| on |namespaceObject| given |realm|. 1. [=Define the regular operations=] of |namespace| on |namespaceObject| given |realm|. 1. [=Define the constants=] of |namespace| on |namespaceObject| given |realm|. @@ -14585,7 +14585,7 @@ A {{DOMException}} is represented by a 1. Let |args| be « |message| ». - 1. Let |constructor| be [=current realm=].\[[Intrinsics]].[[%|T|%]]. + 1. Let |constructor| be [=current realm=].\[[Intrinsics]].\[[%|T|%]]. 1. Return [=!=] [$Construct$](|constructor|, |args|). @@ -14917,7 +14917,7 @@ Extensions to any other aspect of the IDL language are strongly discouraged. -

Legacy constructs

+

Legacy constructs

This section is informative. @@ -15195,14 +15195,14 @@ defined in this specification — see for the syntaxes that are used by these extended attributes. -

Document conventions

+

Document conventions

The following typographic conventions are used in this document: * Defining instances of terms: example term * Links to terms defined in this document or elsewhere: [=example term=] * Grammar terminals: sometoken -* Grammar non-terminals: ExampleGrammarNonTerminal +* Grammar non-terminals: ExampleGrammarNonTerminal * Grammar symbols: identifier * IDL types: {{unsigned long}} * JavaScript classes: {{Map}}