blob: 3d2cc6603a748a75f93112d1ba4d202113f0bbad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// 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 be available in Script evaluator contexts. (direct eval)
info: |
HashbangComment::
#! SingleLineCommentChars[opt]
features: [hashbang]
---*/
assert.sameValue(eval('#!\n'), undefined);
assert.sameValue(eval('#!\n1'), 1)
assert.sameValue(eval('#!2\n'), undefined);
reportCompare(0, 0);
|