mirror of https://github.com/tc39/test262.git
Merge branch '201'
This commit is contained in:
commit
9fbd9eced1
|
@ -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 {}) { }
|
||||
|
|
@ -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) { }
|
||||
|
|
@ -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 {}) { }
|
||||
|
|
@ -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; }
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue