test262/test/language/comments/hashbang/escaped-hash-u23.js

21 lines
460 B
JavaScript

\u{23}!
// 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 be allowed to have encoded characters \u{23}
info: |
HashbangComment::
#! SingleLineCommentChars[opt]
flags: [raw]
negative:
phase: parse
type: SyntaxError
features: [hashbang]
---*/
throw "Test262: This statement should not be evaluated.";