Merge branch '201'

This commit is contained in:
Brian Terlson 2015-04-07 16:58:44 -07:00
commit 9fbd9eced1
5 changed files with 28 additions and 7 deletions

View File

@ -1,11 +1,11 @@
// Copyright (C) 2011 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 13.1
es6id: 13.6.0.1
description: >
for declaration:
missing identifier, "let" disallowed as bound name
negative: SyntaxError
identifier "let" allowed as lefthandside expression
flags: [noStrict]
---*/
for (let in {}) { }

View File

@ -0,0 +1,13 @@
// Copyright (C) Copyright 2011 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 13.6.0.1
description: >
for declaration:
identifier "let" disallowed as lefthandside expression in strict mode
flags: [onlyStrict]
negative: ReferrenceError
---*/
var o = { a: 1 };
for (let in o) { }

View File

@ -0,0 +1,10 @@
// Copyright (C) Copyright 2011 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 13.6.4.1
description: >
It is a Syntax Error if the BoundNames of ForDeclaration contains "let".
negative: SyntaxError
---*/
for (let let in {}) { }

View File

@ -3,8 +3,7 @@
/*---
es6id: 13.1
description: >
let declarations without initialisers in statement positions:
let declarations without initialisers in statement positions:
case Expression : StatementList
negative: SyntaxError
---*/
switch (true) { case true: let x; }

View File

@ -3,8 +3,7 @@
/*---
es6id: 13.1
description: >
let declarations without initialisers in statement positions:
let declarations without initialisers in statement positions:
default : StatementList
negative: SyntaxError
---*/
switch (true) { default: let x; }