Bug 509982 part 2: add test case
authorDavid Mandelin <dmandelin@mozilla.com>
Fri, 14 Aug 2009 15:29:54 -0700
changeset 31835 3d873e06a0a574287cbd75674319c525882d023c
parent 31834 8c2a6c5dbcad08b59aa48e5d9cf521b8be309068
child 31836 4c0761d89534163f9f7f63ec5f9ed7c92033d34e
push id8746
push userrsayre@mozilla.com
push dateTue, 25 Aug 2009 16:53:43 +0000
treeherdermozilla-central@189759c41621 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs509982
milestone1.9.3a1pre
Bug 509982 part 2: add test case
js/src/trace-test/tests/basic/bug509982.js
new file mode 100644
--- /dev/null
+++ b/js/src/trace-test/tests/basic/bug509982.js
@@ -0,0 +1,15 @@
+function g() {
+    const e = 0;
+    return function () {
+        switch (7) {
+        case e:
+        }
+    };
+}
+
+for (var i = 0; i < 2; i++) {
+    let f = g;
+    f();
+}
+
+// Just test that we don't crash.