test262/test/language/comments/hashbang/preceding-line-comment.js

22 lines
499 B
JavaScript
Raw Normal View History

2018-12-03 22:55:42 +01:00
//
#!
// Copyright (C) 2019 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
2018-12-03 22:55:42 +01:00
/*---
esid: pending
description: >
Hashbang comments should only be allowed at the start of source texts and should not be preceded by line comments.
info: |
HashbangComment::
#! SingleLineCommentChars[opt]
flags: [raw]
negative:
phase: parse
type: SyntaxError
2019-02-05 18:46:27 +01:00
features: [hashbang]
2019-02-05 19:47:01 +01:00
---*/
throw "Test262: This statement should not be evaluated.";