js/src/jit-test/tests/basic/testClosedVarInExtensibleScope.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:2bf5a3434e74
1 function runTest() {
2 if (Math) {
3 function createTester(options) {
4 return function() {
5 return options.blah;
6 };
7 }
8
9 return createTester({blah:"bar"});
10 }
11 }
12
13 assertEq(runTest()(), "bar");

mercurial