Debian Codegraph @

js/src/tests/test262/language/comments/multi-line-html-close-extra.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright (C) 2016 the V8 project authors. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: sec-html-like-comments
6 description: >
7 Arbitrary character sequence not permitted before HTMLCloseComment token
8 info: |
9 Comment ::
10 MultiLineComment
11 SingleLineComment
12 SingleLineHTMLOpenComment
13 SingleLineHTMLCloseComment
14 SingleLineDelimitedComment
15
16 MultiLineComment ::
17 /* FirstCommentLine[opt] LineTerminator MultiLineCommentChars[opt] * / HTMLCloseComment[opt]
18 negative:
19 phase: parse
20 type: SyntaxError
21 ---*/
22
23 $DONOTEVALUATE();
24
25 /*
26 */ the comment should not include these characters, regardless of AnnexB extensions -->