You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Every grammar production alternative in this specification which is not listed below implicitly has the following default definition of ContainsOuterTopic:</p>
124
130
125
-
<emu-alg>
126
-
1. If _symbol_ is `%`, return *false*.
131
+
<emu-alg>
127
132
1. For each child node _child_ of this Parse Node, do
128
-
1. If _child_ is an instance of _symbol_, return *true*.
129
-
1. If _child_ is an instance of a nonterminal, then
130
-
1. Let _contained_ be the result of _child_ Contains _symbol_.
131
-
1. If _contained_ is *true*, return *true*.
133
+
1. If _child_ is an instance of `%`, return *true*.
134
+
1. If _child_ is an instance of a nonterminal, and if ContainsOuterTopic of _child_ is *true*, return *true*.
132
135
1. Return *false*.
133
-
</emu-alg>
136
+
</emu-alg>
134
137
135
-
<emu-note>
136
-
<p>Several early error rules for |ScriptBody| and for
137
-
|ModuleItemList|, as well as a step in CreateDynamicFunction,
138
-
use the Contains operation to check for any unbound topic reference `%`.
139
-
Any inner topic reference within a |PipeBody| is hidden from these rules,
140
-
preventing them from triggering the rules during program
1. NOTE: If this step is reached, _sourceText_ must match _exprSym_ (although the reverse implication does not hold). The purpose of the next two steps is to enforce any Early Error rules which apply to _exprSym_ directly.
918
914
1. Let _expr_ be ParseText(_sourceText_, _exprSym_).
919
915
1. If _expr_ is a List of errors, throw a *SyntaxError* exception.
920
-
1. <ins>NOTE: The dynamic function must not <emu-xrefhref="#sec-syntax-directed-operations-contains">contain</emu-xref> an unbound topic reference `%`.)</ins>
921
-
1. <ins>If _expr_ Contains `%` is *true*, throw a *SyntaxError* exception.</ins>
916
+
1. <ins>NOTE: The dynamic function must not contain an unbound topic reference `%`.)</ins>
917
+
1. <ins>If ContainsOuterTopic of _expr_ is *true*, throw a *SyntaxError* exception.</ins>
922
918
1. Let _proto_ be ? GetPrototypeFromConstructor(_newTarget_, _fallbackProto_).
0 commit comments