summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/inlining/inline-istypedarray-on-nontypedarray.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/ion/inlining/inline-istypedarray-on-nontypedarray.js')
-rw-r--r--js/src/jit-test/tests/ion/inlining/inline-istypedarray-on-nontypedarray.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/inlining/inline-istypedarray-on-nontypedarray.js b/js/src/jit-test/tests/ion/inlining/inline-istypedarray-on-nontypedarray.js
new file mode 100644
index 0000000000..e1c540d19d
--- /dev/null
+++ b/js/src/jit-test/tests/ion/inlining/inline-istypedarray-on-nontypedarray.js
@@ -0,0 +1,6 @@
+(new Int8Array(3)).join();
+[Math.abs, Math.abs].forEach(x => {
+ try {
+ Int8Array.prototype.join.call(x);
+ } catch(e) {}
+});