summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/closures/bug684178.js
blob: 34a59c5fb4a603b16382360dfd0edee2a341f365 (plain)
1
2
3
4
5
6
7
8
9
var obj = {};
(function() {
    if (obj) {
        function f() { obj.x = 1; }
        obj.m = function() { f(); };
    }
})();
obj.m();
assertEq(obj.x, 1);