Skip to content
Snippets Groups Projects
Commit 6e4b4345 authored by Leo Balter's avatar Leo Balter Committed by Rick Waldron
Browse files

Apply review feedback

- indirect eval
- files renaming
- space after comma
parent 95580934
No related branches found
No related tags found
No related merge requests found
Showing
with 16 additions and 3 deletions
/*---
esid: pending
description: >
Hashbang comments should be available in Script evaluator contexts. (indirect eval)
info: |
HashbangComment::
#! SingleLineCommentChars[opt]
features: [hashbang]
---*/
assert.sameValue((0, eval)('#!\n'), undefined);
assert.sameValue((0, eval)('#!\n1'), 1)
assert.sameValue((0, eval)('#!2\n'), undefined);
/*--- /*---
esid: pending esid: pending
description: > description: >
Hashbang comments should be available in Script evaluator contexts. Hashbang comments should be available in Script evaluator contexts. (direct eval)
info: | info: |
HashbangComment:: HashbangComment::
#! SingleLineCommentChars[opt] #! SingleLineCommentChars[opt]
......
...@@ -17,8 +17,8 @@ for (const ctor of [ ...@@ -17,8 +17,8 @@ for (const ctor of [
GeneratorFunction, GeneratorFunction,
AsyncGeneratorFunction, AsyncGeneratorFunction,
]) { ]) {
assert.throws(SyntaxError, () => ctor('#!\n_',''), `${ctor.name} Call argument`); assert.throws(SyntaxError, () => ctor('#!\n_', ''), `${ctor.name} Call argument`);
assert.throws(SyntaxError, () => ctor('#!\n_'), `${ctor.name} Call body`); assert.throws(SyntaxError, () => ctor('#!\n_'), `${ctor.name} Call body`);
assert.throws(SyntaxError, () => new ctor('#!\n_',''), `${ctor.name} Construct argument`); assert.throws(SyntaxError, () => new ctor('#!\n_', ''), `${ctor.name} Construct argument`);
assert.throws(SyntaxError, () => new ctor('#!\n_'), `${ctor.name} Construct body`); assert.throws(SyntaxError, () => new ctor('#!\n_'), `${ctor.name} Construct body`);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment