Debian Codegraph @

js/src/tests/test262/language/comments/hashbang/statement-block.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright (C) 2019 Leo Balter. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: pending
7 description: >
8 Hashbang comments should only be allowed at the start of source texts and should not be allowed within blocks.
9 info: |
10 HashbangComment::
11 #! SingleLineCommentChars[opt]
12 negative:
13 phase: parse
14 type: SyntaxError
15 features: [hashbang]
16 ---*/
17
18 $DONOTEVALUATE();
19
20 {
21 #!
22 }