test262/test/language/comments/hashbang/eval.js

14 lines
338 B
JavaScript
Raw Normal View History

2018-12-03 22:55:42 +01:00
/*---
esid: pending
description: >
Hashbang comments should be available in Script evaluator contexts. (direct eval)
2018-12-03 22:55:42 +01:00
info: |
HashbangComment::
#! SingleLineCommentChars[opt]
2019-02-05 18:46:27 +01:00
features: [hashbang]
2018-12-03 22:55:42 +01:00
---*/
assert.sameValue(eval('#!\n'), undefined);
2019-02-05 18:46:27 +01:00
assert.sameValue(eval('#!\n1'), 1)
assert.sameValue(eval('#!2\n'), undefined);