js/src/jit-test/tests/ion/bug914098.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/ion/bug914098.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,16 @@
     1.4 +// |jit-test| error: ReferenceError
     1.5 +
     1.6 +function ygTreeView(id) {};
     1.7 +function ygNode() {}
     1.8 +ygNode.prototype.init = function () {
     1.9 +    this.children = [];
    1.10 +}
    1.11 +ygTextNode.prototype = new ygNode;
    1.12 +function ygTextNode() {
    1.13 +    this.init(it.next.bind(it), StopIteration)
    1.14 +}
    1.15 +userTree = new ygTreeView("userTree")
    1.16 +addMenuNode(userTree)
    1.17 +function addMenuNode(tree) {
    1.18 +    new ygTextNode({}, tree.root, false)
    1.19 +}

mercurial