From da5377d4d39bc39d04246c28010c7b977343a8d5 Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Wed, 15 Jan 2025 14:46:18 -0800 Subject: [PATCH] Editorial: consistency around how we refer to GlobalSymbolRegistry stuff --- spec.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec.html b/spec.html index 349e2c3083..4ca1daf914 100644 --- a/spec.html +++ b/spec.html @@ -30914,12 +30914,12 @@

Symbol.for ( _key_ )

1. Let _stringKey_ be ? ToString(_key_). 1. For each element _e_ of the GlobalSymbolRegistry List, do 1. If _e_.[[Key]] is _stringKey_, return _e_.[[Symbol]]. - 1. Assert: GlobalSymbolRegistry does not currently contain an entry for _stringKey_. + 1. Assert: The GlobalSymbolRegistry List does not currently contain an entry for _stringKey_. 1. Let _newSymbol_ be a new Symbol whose [[Description]] is _stringKey_. - 1. Append the Record { [[Key]]: _stringKey_, [[Symbol]]: _newSymbol_ } to the GlobalSymbolRegistry List. + 1. Append the GlobalSymbolRegistry Record { [[Key]]: _stringKey_, [[Symbol]]: _newSymbol_ } to the GlobalSymbolRegistry List. 1. Return _newSymbol_. -

The GlobalSymbolRegistry is an append-only List that is globally available. It is shared by all realms. Prior to the evaluation of any ECMAScript code, it is initialized as a new empty List. Elements of the GlobalSymbolRegistry are Records with the structure defined in .

+

The GlobalSymbolRegistry List is an append-only List that is globally available. It is shared by all realms. Prior to the evaluation of any ECMAScript code, it is initialized as a new empty List. Elements of the GlobalSymbolRegistry List are Records with the structure defined in .

@@ -31162,12 +31162,12 @@

description
-
If _sym_ is in the GlobalSymbolRegistry (see ) the String used to register _sym_ will be returned.
+
If _sym_ is in the GlobalSymbolRegistry List (see ) the String used to register _sym_ will be returned.
1. For each element _e_ of the GlobalSymbolRegistry List, do 1. If SameValue(_e_.[[Symbol]], _sym_) is *true*, return _e_.[[Key]]. - 1. Assert: GlobalSymbolRegistry does not currently contain an entry for _sym_. + 1. Assert: The GlobalSymbolRegistry List does not currently contain an entry for _sym_. 1. Return *undefined*.