summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/bug549602.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--js/src/jit-test/tests/jaeger/bug549602.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/jaeger/bug549602.js b/js/src/jit-test/tests/jaeger/bug549602.js
new file mode 100644
index 0000000000..11797bd3b4
--- /dev/null
+++ b/js/src/jit-test/tests/jaeger/bug549602.js
@@ -0,0 +1,30 @@
+function f1(code) {
+ var c
+ var t = code.replace(/s/, "")
+ var f = new Function(code)
+ var o
+ e = v = f2(f, c)
+}
+function f2(f, e) {
+ try {
+ a = f()
+ } catch(r) {
+ var r = g()
+ }
+}
+g1 = [{
+ text: "(function sum_slicing(array){return array==0?0:a+sum_slicing(array.slice(1))})",
+ test: function (f) {
+ f([, 2]) == ""
+ }
+}];
+(function () {
+ for (var i = 0; i < g1.length; ++i) {
+ var a = g1[i]
+ var text = a.text
+ var f = eval(text.replace(/@/, ""))
+ if (a.test(f)) {}
+ }
+}())
+f1("for(let a=0;a<6;a++){print([\"\"].some(function(){false>\"\"}))}")
+