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
1. Let _prefix_ be the prefix associated with _kind_ in <emu-xref href="#table-dynamic-function-sourcetext-prefixes"></emu-xref>.
24991
24995
1. Let _sourceString_ be the string-concatenation of _prefix_, *" anonymous("*, _P_, 0x000A (LINE FEED), *") {"*, _bodyString_, and *"}"*.
24992
24996
1. Let _sourceText_ be ! StringToCodePoints(_sourceString_).
24997
+
1. Let _parameters_ be ParseText(! StringToCodePoints(_P_), _parameterSym_).
24998
+
1. If _parameters_ is a List of errors, throw a *SyntaxError* exception.
24999
+
1. Let _body_ be ParseText(! StringToCodePoints(_bodyString_), _bodySym_).
25000
+
1. If _body_ is a List of errors, throw a *SyntaxError* exception.
25001
+
1. NOTE: The parameters and body are parsed separately to ensure that each is valid alone. For example, `new Function("/*", "*/ ) {")` is not legal.
25002
+
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.
24993
25003
1. Let _expr_ be ParseText(_sourceText_, _exprSym_).
24994
25004
1. If _expr_ is a List of errors, throw a *SyntaxError* exception.
24995
-
1. Let _parameters_ be the |FormalParameters| of _expr_.
24996
-
1. Let _body_ be the child of _expr_ that is an instance of _bodySym_.
24997
25005
1. Let _proto_ be ? GetPrototypeFromConstructor(_newTarget_, _fallbackProto_).
0 commit comments