Fix commit messages

This commit is contained in:
Daniel Ehrenberg 2017-04-11 23:58:04 +02:00
parent dbfca4581d
commit 799568fe26
2 changed files with 13 additions and 16 deletions

View File

@ -5,19 +5,18 @@
author: Jeff Walden <jwalden+code@mit.edu> author: Jeff Walden <jwalden+code@mit.edu>
esid: sec-let-and-const-declarations esid: sec-let-and-const-declarations
description: > description: >
`await` must not be considered a permissible binding name in `let await` does not permit ASI in between, as `await` is a BindingIdentifier
LexicalDeclaration as used in async functions.
info: > info: >
LexicalDeclaration is parametrized to indicate whether `async` is permitted as `await` is a perfectly cromulent binding name in any context grammatically, just
binding name. In async functions `await` is excluded from LexicalDeclaration prohibited by static semantics in some contexts. Therefore ASI can never apply
as a binding name. Therefore ASI *can* apply between `let` (where a between `let` (where a LexicalDeclaration is permitted) and `await`,
LexicalDeclaration is permitted) and `await`, so a subsequent `0` forms part so a subsequent `0` where `=` was expected is a syntax error.
of an AwaitExpression and there is no syntax error. negative:
phase: early
type: SyntaxError
---*/ ---*/
async function f() { async function f() {
let let
await 0; await 0;
} }
assert(f instanceof Function);

View File

@ -5,14 +5,12 @@
author: Jeff Walden <jwalden+code@mit.edu> author: Jeff Walden <jwalden+code@mit.edu>
esid: sec-let-and-const-declarations esid: sec-let-and-const-declarations
description: > description: >
`await` must be considered a permissible binding name in LexicalDeclaration as `let await` does not permit ASI in between, as `await` is a BindingIdentifier
used in non-async functions.
info: > info: >
LexicalDeclaration is parametrized to indicate whether `async` is permitted as `await` is a perfectly cromulent binding name in any context grammatically, just
binding name. In non-async functions `await` is a perfectly cromulent binding prohibited by static semantics in some contexts. Therefore ASI can never apply
name. Therefore ASI can't apply between `let` (where a LexicalDeclaration is between `let` (where a LexicalDeclaration is permitted) and `await`,
permitted) and `await`, so a subsequent `0` where `=` was expected is a syntax so a subsequent `0` where `=` was expected is a syntax error.
error.
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError