summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/bug706110.js
blob: ef1e657ca62780d0d546a705591c48a4b28e00c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function test() {
  function Bug() { this.prototype }
  var actual = (new Bug instanceof Bug);
  assertEq(actual, true);
}
test();
test();

function testLambdaCtor() {
    var q;
    for (var x = 0; x < 2; ++x) {
        var f = function(){};
	if (x == 1) gc();
        q = new f;
    }
    return q.__proto__ === f.prototype;
}
assertEq(testLambdaCtor(), true);