Skip to content

Commit b13a0e9

Browse files
committed
PR #3459 has been merged
1 parent 75c5343 commit b13a0e9

7 files changed

+20
-23
lines changed

Pseudocode.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ def looks_runtimey(anode):
10961096
'a newly created object',
10971097
'a new built-in function object',
10981098
'an ECMAScript function object',
1099-
'an Iterator object',
1099+
'an iterator object',
11001100
'internal slot',
11011101
'own property',
11021102
'the property named',

Section.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ def is_a_sub_of(subnature, vd):
11441144
if mo:
11451145
(pre, verb, post) = mo.groups()
11461146
if (
1147-
pre.endswith('whose `next` method')
1147+
pre.endswith('whose [[NextMethod]]')
11481148
# CreateListIteratorRecord
11491149
or
11501150
pre == 'It does not enforce that the constructor function'
@@ -2910,9 +2910,9 @@ def extract_intrinsic_info_from_p_ul_section(section):
29102910

29112911
elif mo := re.fullmatch(r'has properties that are indirectly inherited by all \w+ instances\.', li_ist):
29122912
pass
2913-
elif mo := re.fullmatch(r'has properties that are inherited by all (.+) Iterator Objects\.', li_ist):
2913+
elif mo := re.fullmatch(r'has properties that are inherited by all (.+) Iterator objects\.', li_ist):
29142914
pass
2915-
elif li_ist == 'has properties that are inherited by all Iterator Helper Objects.':
2915+
elif li_ist == 'has properties that are inherited by all Iterator Helper objects.':
29162916
pass
29172917
elif li_ist == 'along with its corresponding prototype object, provides common properties that are inherited by all _TypedArray_ constructors and their instances.':
29182918
pass

analyze_spec.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ def check_value_descriptions_in_column(col_index):
605605
assert 0
606606

607607
elif 'Properties' in caption:
608-
assert re.fullmatch(r'<i>\w+</i> Interface( (Required|Optional))? Properties', caption)
608+
assert re.fullmatch(r'[\w ]+ Interface( (Required|Optional))? Properties', caption)
609609
assert header_line == 'Property; Value; Requirements'
610610
check_value_descriptions_in_column(1)
611611

function_preambles.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,10 @@ def check_header_against_prose(alg_header, preamble_nodes):
158158
retn=\2 \3
159159
v=\1
160160
161-
(.+ returns (?P<retn>an Iterator object) .+)
162-
v=\1
163-
164161
(.+ returns (?P<retn>an array) .+)
165162
v=\1
166163
167-
(.+ returns (?P<retn>an Iterator object) .+)
164+
(.+ returns (?P<retn>an iterator object) .+)
168165
v=\1
169166
170167
(.+ returns either a new promise .+ or the argument itself if the argument is a promise .+)

intrinsics.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def pc(s): return f"%{s}%"
4949
'the constructor of async generator function objects': '%AsyncGeneratorFunction%',
5050
'the constructor of generator function objects': '%GeneratorFunction%',
5151
'the super class of all typed Array constructors': '%TypedArray%',
52-
'the prototype of Iterator Helper Objects': '%IteratorHelperPrototype%',
53-
'the prototype of wrapped Iterator objects returned by Iterator.from': '%WrapForValidIteratorPrototype%',
52+
'the prototype of Iterator Helper objects': '%IteratorHelperPrototype%',
53+
'the prototype of wrapped iterator objects returned by Iterator.from': '%WrapForValidIteratorPrototype%',
5454
}.get(phrase)
5555
if result: return result
5656

pseudocode.grammar

+7-7
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,6 @@
721721
a newly created Property Descriptor with no fields
722722
a newly created object with an internal slot for each name in {var}
723723
a one-element CharSet containing {EX}
724-
an Iterator object ({h_emu_xref}) whose `next` method iterates over all the String-valued keys of enumerable properties of {var}. The iterator object is never directly accessible to ECMAScript code. The mechanics and order of enumerating the properties is not specified but must conform to the rules specified below
725724
an empty List of Matchers
726725
an empty Set
727726
an empty sequence of characters
@@ -732,6 +731,7 @@
732731
an implementation-defined non-negative mathematical value
733732
an implementation-defined string that is either {EX} or {EXPR}
734733
an instance of the production {h_emu_grammar}
734+
an iterator object whose `next` method iterates over all the String-valued keys of enumerable properties of {var}. The iterator object is never directly accessible to ECMAScript code. The mechanics and order of enumerating the properties is not specified but must conform to the rules specified below
735735
reads-bytes-from({var}) in {var}
736736
such an object created in a host-defined manner
737737
that Record
@@ -1353,10 +1353,10 @@
13531353
a finite time value
13541354
a fully populated Property Descriptor
13551355
a function object
1356-
a function that returns a promise for an <i>IteratorResult</i> object
1357-
a function that returns an <i>AsyncIterator</i> object
1358-
a function that returns an <i>Iterator</i> object
1359-
a function that returns an <i>IteratorResult</i> object
1356+
a function that returns a promise for an IteratorResult object
1357+
a function that returns an IteratorResult object
1358+
a function that returns an async iterator object
1359+
a function that returns an iterator object
13601360
a grammar symbol
13611361
a leading surrogate
13621362
a mathematical value
@@ -1401,10 +1401,9 @@
14011401
an Environment Record
14021402
an IEEE 754-2019 binary32 NaN value
14031403
an IEEE 754-2019 binary64 NaN value
1404-
an Iterator
14051404
an Iterator Record
14061405
an Object
1407-
an Object that conforms to the <i>IteratorResult</i> interface
1406+
an Object that conforms to the IteratorResult interface
14081407
an Object that has a {dsb_word} internal slot
14091408
an Object that is defined by either an {nonterminal} or an {nonterminal}
14101409
an abrupt completion
@@ -1428,6 +1427,7 @@
14281427
an integral Number
14291428
an integral Number in {INTERVAL}
14301429
an internal slot name
1430+
an iterator object
14311431
an odd integral Number
14321432
an ordinary object
14331433
an ordinary, extensible object

pseudocode_semantics.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -9541,10 +9541,10 @@ def s_expr(expr, env0, _):
95419541
assert 0
95429542
return (result_type, env0)
95439543

9544-
@P("{EXPR} : an Iterator object ({h_emu_xref}) whose `next` method iterates over all the String-valued keys of enumerable properties of {var}. The iterator object is never directly accessible to ECMAScript code. The mechanics and order of enumerating the properties is not specified but must conform to the rules specified below")
9544+
@P("{EXPR} : an iterator object whose `next` method iterates over all the String-valued keys of enumerable properties of {var}. The iterator object is never directly accessible to ECMAScript code. The mechanics and order of enumerating the properties is not specified but must conform to the rules specified below")
95459545
class _:
95469546
def s_expr(expr, env0, _):
9547-
[emu_xref, var] = expr.children
9547+
[var] = expr.children
95489548
env1 = env0.ensure_expr_is_of_type(var, T_Object)
95499549
return (T_Iterator_object_, env1)
95509550

@@ -14673,7 +14673,7 @@ class _:
1467314673
# ==============================================================================
1467414674
#@ 27.1 Iteration
1467514675

14676-
@P("{VAL_DESC} : an Iterator")
14676+
@P("{VAL_DESC} : an iterator object")
1467714677
class _:
1467814678
s_tb = T_Iterator_object_
1467914679

@@ -14695,9 +14695,9 @@ class _:
1469514695
declare_isom(T_Generator_object_, 'might have', 'slot', '[[UnderlyingIterator]]', T_Iterator_Record)
1469614696

1469714697
# ==============================================================================
14698-
#@ 27.1.1.5 The <i>IteratorResult</i> Interface
14698+
#@ 27.1.1.5 The IteratorResult Interface
1469914699

14700-
@P("{VAL_DESC} : an Object that conforms to the <i>IteratorResult</i> interface")
14700+
@P("{VAL_DESC} : an Object that conforms to the IteratorResult interface")
1470114701
class _:
1470214702
s_tb = a_subset_of(T_Object)
1470314703

0 commit comments

Comments
 (0)