Debian Codegraph @

js/src/tests/test262/language/comments/hashbang/preceding-directive-prologue.js

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