summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug914098.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/ion/bug914098.js')
-rw-r--r--js/src/jit-test/tests/ion/bug914098.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug914098.js b/js/src/jit-test/tests/ion/bug914098.js
new file mode 100644
index 000000000..353533f69
--- /dev/null
+++ b/js/src/jit-test/tests/ion/bug914098.js
@@ -0,0 +1,16 @@
+// |jit-test| error: ReferenceError
+
+function ygTreeView(id) {};
+function ygNode() {}
+ygNode.prototype.init = function () {
+ this.children = [];
+}
+ygTextNode.prototype = new ygNode;
+function ygTextNode() {
+ this.init(it.next.bind(it), StopIteration)
+}
+userTree = new ygTreeView("userTree")
+addMenuNode(userTree)
+function addMenuNode(tree) {
+ new ygTextNode({}, tree.root, false)
+}