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

15 lines
319 B
JavaScript

// Options: --block-binding
function testBlock() {
// Test function expressions.
{
var x = function g() { return 'g'; } || function h() { return 'h'; };
return x;
}
}
// ----------------------------------------------------------------------------
var result = testBlock();
assert.equal('g', result());