diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/cacheir/bug1685925-2.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/cacheir/bug1685925-2.js b/js/src/jit-test/tests/cacheir/bug1685925-2.js new file mode 100644 index 0000000000..c009a1c0ec --- /dev/null +++ b/js/src/jit-test/tests/cacheir/bug1685925-2.js @@ -0,0 +1,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())); |