Debian Codegraph @

js/src/tests/test262/annexB/built-ins/Function/createdynfn-no-line-terminator-html-close-comment-body.js

raw
1 // Copyright (C) 2019 Leo Balter. 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 Function body is wrapped with new lines before being parsed
8 info: |
9 The HTMLCloseComment requires a preceding line terminator.
10
11 Runtime Semantics: CreateDynamicFunction(constructor, newTarget, kind, args)
12 ...
13 Set bodyText to ? ToString(bodyText).
14 Let parameters be the result of parsing P, interpreted as UTF-16 encoded Unicode text as
15 described in 6.1.4, using parameterGoal as the goal symbol. Throw a SyntaxError exception if the
16 parse fails.
17 Let body be the result of parsing bodyText, interpreted as UTF-16 encoded Unicode text as
18 described in 6.1.4, using goal as the goal symbol. Throw a SyntaxError exception if the parse
19 fails.
20 ---*/
21
22 Function("-->");
23
24 reportCompare(0, 0);