summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/bug669706.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/jaeger/bug669706.js')
-rw-r--r--js/src/jit-test/tests/jaeger/bug669706.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/jaeger/bug669706.js b/js/src/jit-test/tests/jaeger/bug669706.js
new file mode 100644
index 000000000..a3ddb4358
--- /dev/null
+++ b/js/src/jit-test/tests/jaeger/bug669706.js
@@ -0,0 +1,14 @@
+function printStatus(msg) {
+ msg.toString()
+ lines = msg
+ for (var i = 0; i < lines; i++) i
+}
+var summary = new Float32Array;
+try {
+ printStatus(summary)
+ x = {
+ }
+ toString.__proto__ = x
+} catch (e) {}
+var summary = 6;
+printStatus(summary)