summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testClosedVarInExtensibleScope.js
blob: f06efa6bdad7ca17e06bffd7314fd2545e5124b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function runTest() {
  if (Math) {
    function createTester(options) {
      return function() {
        return options.blah;
      };
    }

    return createTester({blah:"bar"});
  }
}

assertEq(runTest()(), "bar");