summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testThatGenExpsActuallyDecompile.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/testThatGenExpsActuallyDecompile.js')
-rw-r--r--js/src/jit-test/tests/basic/testThatGenExpsActuallyDecompile.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/testThatGenExpsActuallyDecompile.js b/js/src/jit-test/tests/basic/testThatGenExpsActuallyDecompile.js
new file mode 100644
index 000000000..1f309b962
--- /dev/null
+++ b/js/src/jit-test/tests/basic/testThatGenExpsActuallyDecompile.js
@@ -0,0 +1,4 @@
+// |jit-test| error: 3
+var str = (function (x) {return (i for (i in x));}).toSource().replace('\n', '');
+assertEq(str, "(function (x) {return (i for (i in x));})");
+throw 3;