summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/expr-decompiler-bug1475953.js
blob: 5b1b93b75e39e3cc1d2398b5401f77f0a2d77cd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Object.defineProperty(this, "fuzzutils", { value:{} });
try { evaluate(`
  var f = 396684;
  var src = "return f(" +Array(10*1000).join("0,")+"Math.atan2());";
  var result = new Function(src)();
`);
} catch (exc) {}
try {
  evalInWorker(`
    function lfEvalInCache(lfCode, lfIncremental = false, lfRunOnce = false) {
      ctx = Object.create(ctx, {});
    }
    try { evaluate(\`
      var f = 396684;
      var src = "return f(" +Array(10*1000).join("0,")+"Math.atan2());";
      var result = new Function(src)();
      \`); } catch(exc) {}
  `);
  evalInWorker(`
    Object.defineProperty(this, "fuzzutils", { value:{} });
    try { evaluate(\`
    var f = 396684;
    var src = "return f(" +Array(10*1000).join("0,")+"Math.atan2());";
    var result = new Function(src)();
    \`); } catch(exc) {}
  `);
} catch (exc) {}
try { evalInWorker(`
  try { evaluate(\`
    var f = 396684;
    var src = "return f(" +Array(10*1000).join("0,")+"Math.atan2());";
    var result = new Function(src)();
  \`); } catch(exc) {}
`);
} catch (exc) {}