babel/test/fixtures/traceur/Scope/LetNoInitializer.js
2015-01-04 19:40:09 +11:00

11 lines
134 B
JavaScript

// Options: --block-binding
var x = 1;
{
let x;
assert.equal(undefined, x);
x = 2;
assert.equal(2, x);
}
assert.equal(1, x);