ericmckean / traceur-compiler

Automatically exported from code.google.com/p/traceur-compiler
Apache License 2.0
0 stars 0 forks source link

Implement temporal dead zone for let/const #214

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
    x;
    const x = 5;

    x;
    let x;

    const x = 5;
    {
        x;
        const x = 10;
    }

    let x;
    {
        x;
        let x;
    }

all should throw reference errors. I don't think the changes suggested in #198 
suffice for this.

Original issue reported on code.google.com by dome...@domenicdenicola.com on 4 Mar 2013 at 6:17

GoogleCodeExporter commented 9 years ago

Original comment by arv@chromium.org on 5 Mar 2013 at 5:04