Skip to content
Snippets Groups Projects
Commit dcdc9ba1 authored by Rick Waldron's avatar Rick Waldron Committed by Brian Terlson
Browse files

block-scope: corrections. Fixes gh-201

parent 550bd36f
No related branches found
No related tags found
No related merge requests found
// 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 {}) { }
// 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) { }
// 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; }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment