From b175092037aba03995e5e1ad551e5528ecea9a74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Tue, 30 Jul 2024 15:59:51 +0200 Subject: [PATCH] Remove `assert` --- spec.html | 48 +++++------------------------------------------- 1 file changed, 5 insertions(+), 43 deletions(-) diff --git a/spec.html b/spec.html index 27f24c0f18..76204ce253 100644 --- a/spec.html +++ b/spec.html @@ -144,13 +144,6 @@

Example Legacy Clause Heading

Example Legacy Normative Optional Clause Heading

Example clause contents.

- -

A conforming implementation of ECMAScript should not implement Deprecated subclauses or algorithm steps, unless necessary for compatibility with existing applications that already run in such an implementation before the deprecation of the given language feature. All of the language features and behaviours specified within Deprecated subclauses or algorithm steps have one or more undesirable characteristics. However, their use in existing applications currently prevents their removal from this specification. These features are not considered part of the core ECMAScript language. Programmers should not use or assume the existence of these features and behaviours when writing new ECMAScript code.

- - -

Example Deprecated Clause Heading

-

Example clause contents.

-
@@ -19595,9 +19588,6 @@

1. Return _promiseCapability_.[[Promise]]. 1. Let _attributesObj_ be Completion(Get(_options_, *"with"*)). 1. IfAbruptRejectPromise(_attributesObj_, _promiseCapability_). - 1. [id="step-evaluate-import-call-assert-fallback", deprecated, normative-optional] If the host supports the deprecated `assert` keyword for import attributes and _attributesObj_ is *undefined*, then - 1. Set _attributesObj_ to Completion(Get(_options_, *"assert"*)). - 1. IfAbruptRejectPromise(_attributesObj_, _promiseCapability_). 1. If _attributesObj_ is not *undefined*, then 1. If _attributesObj_ is not an Object, then 1. Perform ! Call(_promiseCapability_.[[Reject]], *undefined*, « a newly created *TypeError* object »). @@ -19620,10 +19610,6 @@

1. Perform HostLoadImportedModule(_referrer_, _moduleRequest_, ~empty~, _promiseCapability_). 1. Return _promiseCapability_.[[Promise]]. - - - Removal of the `assert` fallback when _options_'s `with` property is *undefined* is being investigated. - @@ -28584,11 +28570,8 @@

Syntax

BindingIdentifier[~Yield, +Await] WithClause : - AttributesKeyword `{` `}` - AttributesKeyword `{` WithEntries `,`? `}` - - AttributesKeyword : - `with` + `with` `{` `}` + `with` `{` WithEntries `,`? `}` WithEntries : AttributeKey `:` StringLiteral @@ -28599,10 +28582,6 @@

Syntax

StringLiteral - -

The |AttributesKeyword| production is extended by .

-
-

Static Semantics: Early Errors

ModuleItem : ImportDeclaration @@ -28612,7 +28591,7 @@

Static Semantics: Early Errors

- WithClause : AttributesKeyword `{` WithEntries `,`? `}` + WithClause : `with` `{` WithEntries `,`? `}`
  • It is a Syntax Error if WithClauseToAttributes of |WithClause| has two different entries _a_ and _b_ such that _a_.[[Key]] is _b_.[[Key]]. @@ -28716,14 +28695,14 @@

    Static Semantics: WithClauseToAttributes ( ): a List of ImportAttribute Reco - WithClause : AttributesKeyword `{` `}` + WithClause : `with` `{` `}` 1. Return a new empty List. - WithClause : AttributesKeyword `{` WithEntries `,`? `}` + WithClause : `with` `{` WithEntries `,`? `}` 1. Let _attributes_ be WithClauseToAttributes of |WithEntries|. @@ -28746,22 +28725,6 @@

    Static Semantics: WithClauseToAttributes ( ): a List of ImportAttribute Reco 1. Return the list-concatenation of « _entry_ » and _rest_. - - -

    Deprecated `assert` keyword for Import Attributes

    - -

    Import Attributes are denoted using the `with` keyword. However, there are existing implementations based on a previous version of the proposal using the `assert` keyword. Due to potential web compatibility risks, the `assert` keyword is still included in this specification, but its removal is being investigated.

    - -

    This deprecated feature includes the `assert` fallback for import attributes in import calls (step of ).

    - -

    The following extends the |AttributesKeyword| production in :

    - - - AttributesKeyword : - `with` - [no LineTerminator here] `assert` - -
    @@ -50444,7 +50407,6 @@

    Scripts and Modules

    -