From 04f8e7c2b402d98ee1447e0d08bc6fede8b7fa81 Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Tue, 30 Jan 2024 22:01:59 -0800 Subject: [PATCH 1/2] Editorial: use new IteratorStepValue AO --- package-lock.json | 17 ++++++++--------- package.json | 4 +--- spec/listformat.html | 18 ++++++++---------- 3 files changed, 17 insertions(+), 22 deletions(-) diff --git a/package-lock.json b/package-lock.json index b47fc0c6..9d62743b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,10 +9,9 @@ "version": "9.0.0", "license": "SEE LICENSE IN https://tc39.es/ecma402/#sec-copyright-and-software-license", "dependencies": { - "@tc39/ecma262-biblio": "2.1.2638", + "@tc39/ecma262-biblio": "2.1.2678", "ecmarkup": "^18.0.0" - }, - "devDependencies": {} + } }, "node_modules/@babel/code-frame": { "version": "7.12.11", @@ -208,9 +207,9 @@ } }, "node_modules/@tc39/ecma262-biblio": { - "version": "2.1.2638", - "resolved": "https://registry.npmjs.org/@tc39/ecma262-biblio/-/ecma262-biblio-2.1.2638.tgz", - "integrity": "sha512-644cVhPBYBY5OGg5HTsEX9HqHMxkq0J+kf/BPdI715NAREi66RRpZzgNc4IdflKLfZou/U+vNtS7GYxfsHOu2g==" + "version": "2.1.2678", + "resolved": "https://registry.npmjs.org/@tc39/ecma262-biblio/-/ecma262-biblio-2.1.2678.tgz", + "integrity": "sha512-3I6m+wpNSHuQsJjeH3UgfqUaet1aM/9ReeWJH8H1H+DKLHfQafWK+OHQLgUbpd5ruJveC2AbyKuUVsXrtMV3Bw==" }, "node_modules/@tootallnate/once": { "version": "2.0.0", @@ -1556,9 +1555,9 @@ } }, "@tc39/ecma262-biblio": { - "version": "2.1.2638", - "resolved": "https://registry.npmjs.org/@tc39/ecma262-biblio/-/ecma262-biblio-2.1.2638.tgz", - "integrity": "sha512-644cVhPBYBY5OGg5HTsEX9HqHMxkq0J+kf/BPdI715NAREi66RRpZzgNc4IdflKLfZou/U+vNtS7GYxfsHOu2g==" + "version": "2.1.2678", + "resolved": "https://registry.npmjs.org/@tc39/ecma262-biblio/-/ecma262-biblio-2.1.2678.tgz", + "integrity": "sha512-3I6m+wpNSHuQsJjeH3UgfqUaet1aM/9ReeWJH8H1H+DKLHfQafWK+OHQLgUbpd5ruJveC2AbyKuUVsXrtMV3Bw==" }, "@tootallnate/once": { "version": "2.0.0", diff --git a/package.json b/package.json index ce3a9ca6..a8fd29b1 100644 --- a/package.json +++ b/package.json @@ -19,8 +19,6 @@ "homepage": "https://tc39.es/ecma402/", "dependencies": { "ecmarkup": "^18.0.0", - "@tc39/ecma262-biblio": "2.1.2638" - }, - "devDependencies": { + "@tc39/ecma262-biblio": "2.1.2678" } } diff --git a/spec/listformat.html b/spec/listformat.html index 23933cd5..93068d12 100644 --- a/spec/listformat.html +++ b/spec/listformat.html @@ -383,16 +383,14 @@

1. Return a new empty List. 1. Let _iteratorRecord_ be ? GetIterator(_iterable_, ~sync~). 1. Let _list_ be a new empty List. - 1. Let _next_ be *true*. - 1. Repeat, while _next_ is not *false*, - 1. Set _next_ to ? IteratorStep(_iteratorRecord_). - 1. If _next_ is not *false*, then - 1. Let _nextValue_ be ? IteratorValue(_next_). - 1. If Type(_nextValue_) is not String, then - 1. Let _error_ be ThrowCompletion(a newly created *TypeError* object). - 1. Return ? IteratorClose(_iteratorRecord_, _error_). - 1. Append _nextValue_ to _list_. - 1. Return _list_. + 1. Repeat, + 1. Let _next_ be ? IteratorStepValue(_iteratorRecord_). + 1. If _next_ is ~done~, then + 1. Return _list_. + 1. If Type(_next_) is not String, then + 1. Let _error_ be ThrowCompletion(a newly created *TypeError* object). + 1. Return ? IteratorClose(_iteratorRecord_, _error_). + 1. Append _next_ to _list_.

This algorithm raises exceptions when it encounters values that are not Strings, because there is no obvious locale-aware coercion for arbitrary values.

From dca9dd885792b7d74e81a121fcba9dbba9ea67e4 Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Tue, 30 Jan 2024 22:04:15 -0800 Subject: [PATCH 2/2] Meta: bump ecmarkup --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9d62743b..25992679 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "SEE LICENSE IN https://tc39.es/ecma402/#sec-copyright-and-software-license", "dependencies": { "@tc39/ecma262-biblio": "2.1.2678", - "ecmarkup": "^18.0.0" + "ecmarkup": "^18.1.2" } }, "node_modules/@babel/code-frame": { @@ -500,9 +500,9 @@ } }, "node_modules/ecmarkup": { - "version": "18.0.0", - "resolved": "https://registry.npmjs.org/ecmarkup/-/ecmarkup-18.0.0.tgz", - "integrity": "sha512-VSItKQ+39dv1FeR1YbGGlJ/rx17wsPSkS7morrOCwLGHh+7ehy89hao+rQ0/ptiBAN3nbytXzwUBUTC3XNmxaA==", + "version": "18.1.2", + "resolved": "https://registry.npmjs.org/ecmarkup/-/ecmarkup-18.1.2.tgz", + "integrity": "sha512-HqQXcUlmz66D2dGKEFcfApAftzTQfjjHrScccGmbFjuDjf82HQVBCX4vVwUnWpkVki2ioTDZUIvG8AVvRZg31g==", "dependencies": { "chalk": "^4.1.2", "command-line-args": "^5.2.0", @@ -1781,9 +1781,9 @@ } }, "ecmarkup": { - "version": "18.0.0", - "resolved": "https://registry.npmjs.org/ecmarkup/-/ecmarkup-18.0.0.tgz", - "integrity": "sha512-VSItKQ+39dv1FeR1YbGGlJ/rx17wsPSkS7morrOCwLGHh+7ehy89hao+rQ0/ptiBAN3nbytXzwUBUTC3XNmxaA==", + "version": "18.1.2", + "resolved": "https://registry.npmjs.org/ecmarkup/-/ecmarkup-18.1.2.tgz", + "integrity": "sha512-HqQXcUlmz66D2dGKEFcfApAftzTQfjjHrScccGmbFjuDjf82HQVBCX4vVwUnWpkVki2ioTDZUIvG8AVvRZg31g==", "requires": { "chalk": "^4.1.2", "command-line-args": "^5.2.0", diff --git a/package.json b/package.json index a8fd29b1..ba8c825b 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "license": "SEE LICENSE IN https://tc39.es/ecma402/#sec-copyright-and-software-license", "homepage": "https://tc39.es/ecma402/", "dependencies": { - "ecmarkup": "^18.0.0", + "ecmarkup": "^18.1.2", "@tc39/ecma262-biblio": "2.1.2678" } }