summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/recover-typed-array.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/ion/recover-typed-array.js')
-rw-r--r--js/src/jit-test/tests/ion/recover-typed-array.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/recover-typed-array.js b/js/src/jit-test/tests/ion/recover-typed-array.js
new file mode 100644
index 0000000000..9a48a2018a
--- /dev/null
+++ b/js/src/jit-test/tests/ion/recover-typed-array.js
@@ -0,0 +1,13 @@
+function f () {
+ var x = new Uint8Array(4);
+ empty();
+ assertRecoveredOnBailout(x, true);
+ var res = inIon();
+ bailout();
+ return res;
+}
+
+function empty() {
+}
+
+while(!f());