summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1825408.js
blob: 1f25817c29ffae8d99d5ccdd73c10fb8ea4b4056 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// |jit-test| --no-threads; --fast-warmup; --ion-warmup-threshold=0

function a(b = (b, !b)) {
  () => b
}
for (var i = 0; i < 20; i++) {
  a("");
}

try {
  a();
} catch {}

function f(arr) {
  for (var i = 0; i < 10; i++) {
    a(arr.x);
  }
}
f({y: 1, x:1});
f({x:2});