js/src/jit-test/tests/auto-regress/bug648747.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/auto-regress/bug648747.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,51 @@
     1.4 +// |jit-test| error:ReferenceError
     1.5 +
     1.6 +// Binary: cache/js-dbg-64-d3215d1e985a-linux
     1.7 +// Flags: -m -n -a
     1.8 +//
     1.9 +function ygTreeView(id) {
    1.10 +    this.init(id)
    1.11 +}
    1.12 +ygTreeView.prototype.init = function (id) {
    1.13 +    this.root = new ygRootNode(this)
    1.14 +};
    1.15 +function ygNode() {}
    1.16 +ygNode.prototype.init = function (_32, _33, _34) {
    1.17 +    this.children = []
    1.18 +    this.expanded = _34
    1.19 +    if (_33) _33.appendChild(this)
    1.20 +};
    1.21 +ygNode.prototype.appendChild = function (_35) {
    1.22 +    this.children[this.children.length] = _35
    1.23 +};
    1.24 +ygNode.prototype.hasChildren = function () {
    1.25 +    return this.children.length > 0;
    1.26 +};
    1.27 +ygNode.prototype.getHtml = function () {
    1.28 +    var sb = [];
    1.29 +    if (this.hasChildren(true) && this.expanded) sb[sb.length] = this.renderChildren()
    1.30 +};
    1.31 +ygNode.prototype.renderChildren = function () {
    1.32 +    this.completeRender()
    1.33 +};
    1.34 +ygNode.prototype.completeRender = function () {
    1.35 +    for (var i = 0;;) sb[sb.length] = this.children[i].getHtml()
    1.36 +};
    1.37 +ygRootNode.prototype = new ygNode;
    1.38 +
    1.39 +function ygRootNode(_48) {
    1.40 +    this.init(null, null, true)
    1.41 +}
    1.42 +ygTextNode.prototype = new ygNode;
    1.43 +function ygTextNode(_49, _50, _51) {
    1.44 +    this.init(_49, _50, _51)
    1.45 +}
    1.46 +function buildUserTree() {
    1.47 +    userTree = new ygTreeView("userTree")
    1.48 +    addMenuNode(userTree, "N", "navheader")
    1.49 +}
    1.50 +function addMenuNode(tree, label, styleClass) {
    1.51 +    new ygTextNode({}, tree.root, false)
    1.52 +}
    1.53 +buildUserTree();
    1.54 +userTree.root.getHtml()

mercurial