summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/cacheir/bug1685925-1.js
blob: 630b66702695dfcd78788cb6c0726d9536ff63ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// |jit-test| error: TypeError: get length method
function f(o) {
  return o.length;
}
let objects = [
  {},
  {length: 0},
  [],
  {x: 0, length: 0},
  {x: 0, y: 0, length: 0},
  {x: 0, y: 0, z: 0, length: 0},
  new Uint32Array(),
  Object.create(new Uint8Array()),
];
objects.forEach(f);