Skip to content

for (let x of x) doesn't work in next+1 branch #2203

@andy-hanson

Description

@andy-hanson

This code:

let x = [ 1, 2, 3 ]
for (let x of x)
    console.log(x)

works in iojs 2.4.0, but not in the branch next+1 (commit a6b6295).
Now it fails with:

ReferenceError: x is not defined
    at Object.<anonymous> (/home/andy/programming/mason3/TEST/class.js:4:15)
    at Module._compile (module.js:432:26)
    at Object.Module._extensions..js (module.js:450:10)
    at Module.load (module.js:353:32)
    at Function.Module._load (module.js:308:12)
    at Function.Module.runMain (module.js:473:10)
    at startup (node.js:117:18)
    at node.js:947:3

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidIssues and PRs that are invalid.v8 engineIssues and PRs related to the V8 dependency.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions