Debian Codegraph @

js/src/jit-test/tests/cacheir/bug1685925-1.js

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