Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/annexB/built-ins/Function/createdynfn-html-open-comment-body.js

raw
1 // Copyright (C) 2017 André Bargull. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 esid: sec-createdynamicfunction
6 description: >
7 Create a Function with the function body being a html open comment.
8 info: |
9 19.2.1.1.1 Runtime Semantics: CreateDynamicFunction(constructor, newTarget, kind, args)
10 ...
11 7. If kind is "normal", then
12 a. Let goal be the grammar symbol FunctionBody[~Yield, ~Await].
13 ...
14 11. Let body be the result of parsing bodyText, interpreted as UTF-16 encoded Unicode text
15 as described in 6.1.4, using goal as the goal symbol. Throw a SyntaxError exception if
16 the parse fails.
17 ...
18 ---*/
19
20 Function("<!--");