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

16 lines
270 B
JavaScript

// Options: --block-binding
function blockTest() {
{
let x = 'let x value';
function g() {
return x;
}
return g;
}
}
// ----------------------------------------------------------------------------
assert.equal('let x value', blockTest()());