summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug648747.js
blob: 136999dc4df93b98d13dfe714d518712b31e07f8 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// |jit-test| error:ReferenceError

// Binary: cache/js-dbg-64-d3215d1e985a-linux
// Flags: -m -n -a
//
function ygTreeView(id) {
    this.init(id)
}
ygTreeView.prototype.init = function (id) {
    this.root = new ygRootNode(this)
};
function ygNode() {}
ygNode.prototype.init = function (_32, _33, _34) {
    this.children = []
    this.expanded = _34
    if (_33) _33.appendChild(this)
};
ygNode.prototype.appendChild = function (_35) {
    this.children[this.children.length] = _35
};
ygNode.prototype.hasChildren = function () {
    return this.children.length > 0;
};
ygNode.prototype.getHtml = function () {
    var sb = [];
    if (this.hasChildren(true) && this.expanded) sb[sb.length] = this.renderChildren()
};
ygNode.prototype.renderChildren = function () {
    this.completeRender()
};
ygNode.prototype.completeRender = function () {
    for (var i = 0;;) sb[sb.length] = this.children[i].getHtml()
};
ygRootNode.prototype = new ygNode;

function ygRootNode(_48) {
    this.init(null, null, true)
}
ygTextNode.prototype = new ygNode;
function ygTextNode(_49, _50, _51) {
    this.init(_49, _50, _51)
}
function buildUserTree() {
    userTree = new ygTreeView("userTree")
    addMenuNode(userTree, "N", "navheader")
}
function addMenuNode(tree, label, styleClass) {
    new ygTextNode({}, tree.root, false)
}
buildUserTree();
userTree.root.getHtml()