summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/closures/t021.js
blob: 62052383b16be58446d14d3c2252f9b713c1a38a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
actual = '';
expected = 'nocrash,';

var v = {};

function a() {
    var o = 3;
    v.f = function() { return o; };
}

for (i = 0; i < 6; i++)
    new a;


appendToActual('nocrash')


assertEq(actual, expected)