summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/pic/grandproto.js
blob: 0dd65fc328d24c883960c55df54e81c31b0c27fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
function A()
{
    this.a = 77;
    this.b = 88;
}

function B()
{
}

B.prototype = new A;

function C()
{
}

C.prototype = new B;

function f() {
    var o = new C;
    var z;
    for (var i = 0; i < 5; ++i) {
	z = o.a;
	assertEq(z, 77);
    }
}

f();