multi-header.js |
---
author: Jeff Walden <jwalden+code@mit.edu>
esid: sec-let-and-const-declarations
description: |
Outside AsyncFunction, |await| is a perfectly cromulent LexicalDeclaration variable
name. Therefore ASI doesn't apply, and so the |0| where a |=| was expected is a
syntax error.
negative:
phase: early
type: SyntaxError
features:
- foobar
flags:
- module
info: |
foo bar baz
--- |
570 |
reftest-and-frontmatter-error.js |
---
esid: sec-let-and-const-declarations
description: |
Outside AsyncFunction, |await| is a perfectly cromulent LexicalDeclaration variable
name. Therefore ASI doesn't apply, and so the |0| where a |=| was expected is a
syntax error.
negative:
phase: runtime
type: SyntaxError
features: []
--- |
511 |
reftest-error-syntaxerror.js |
---
author: Jeff Walden <jwalden+code@mit.edu>
esid: sec-let-and-const-declarations
description: |
Outside AsyncFunction, |await| is a perfectly cromulent LexicalDeclaration variable
name. Therefore ASI doesn't apply, and so the |0| where a |=| was expected is a
syntax error.
features: []
negative:
phase: early
type: SyntaxError
--- |
525 |
regular.js |
---
author: Jeff Walden <jwalden+code@mit.edu>
esid: sec-let-and-const-declarations
description: |
'|await| is excluded from LexicalDeclaration by grammar parameter, in AsyncFunction. Therefore
|let| followed by |await| inside AsyncFunction is an ASI opportunity, and this code
must parse without error.'
--- |
549 |
reportCompare.js |
---
description: |
assert.sameValue
esid: pending
--- |
469 |