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

22 lines
504 B
JavaScript

#!/*
throw "Test262: This statement should not be evaluated.";
these characters should not be considered within a comment
*/
// Copyright (C) 2019 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: pending
description: >
Hashbang comments should not interpret multi-line comments.
info: |
HashbangComment::
#! SingleLineCommentChars[opt]
flags: [raw]
negative:
phase: parse
type: SyntaxError
features: [hashbang]
---*/