v8/test/message/let-lexical-name-in-object-prohibited.out
littledan dd24cc33d3 Check for let in lexically bound names for short object literals
An identifier may be parsed in an object literal like {let}, but
this was previously left out of lexical name checking. This patch
adds that check to prohibit code like
  let {let} = {let: 1}

BUG=v8:4403
LOG=N
R=adamk

Review URL: https://codereview.chromium.org/1401253003

Cr-Commit-Position: refs/heads/master@{#31278}
2015-10-15 07:52:20 +00:00

6 lines
152 B
Plaintext

*%(basename)s:7: SyntaxError: let is disallowed as a lexically bound name
let {let};
^^^
SyntaxError: let is disallowed as a lexically bound name