summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/cacheir/bug1685925-2.js
blob: c009a1c0ecfc5f330dc2cc0bf8d48dfc28ef58d6 (plain)
1
2
3
4
5
6
7
// |jit-test| error: TypeError: get length method
setJitCompilerOption("ic.force-megamorphic", 1);
function f(o) {
  return o.length;
}
f(new Int8Array(4));
f(Object.create(new Uint8Array()));