michael@0: // |jit-test| error: ReferenceError michael@0: michael@0: function ygTreeView(id) {}; michael@0: function ygNode() {} michael@0: ygNode.prototype.init = function () { michael@0: this.children = []; michael@0: } michael@0: ygTextNode.prototype = new ygNode; michael@0: function ygTextNode() { michael@0: this.init(it.next.bind(it), StopIteration) michael@0: } michael@0: userTree = new ygTreeView("userTree") michael@0: addMenuNode(userTree) michael@0: function addMenuNode(tree) { michael@0: new ygTextNode({}, tree.root, false) michael@0: }