summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/cacheir/optimize-get-iterator-7.js
blob: e6e7a6269e5c7f6a2fbbc1640ccfd9d456bd1579 (plain)
1
2
3
4
5
6
7
8
9
10
setJitCompilerOption("ion.forceinlineCaches", 1);

function f(arr) {
  var [a, b] = arr;
  return b;
}

for (var i = 0; i < 10_000; ++i) {
  assertEq(f([0, 1]), 1);
}