summaryrefslogtreecommitdiffstats
path: root/js/src/tests/js1_8_5/regress/regress-665355.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/js1_8_5/regress/regress-665355.js')
-rw-r--r--js/src/tests/js1_8_5/regress/regress-665355.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/tests/js1_8_5/regress/regress-665355.js b/js/src/tests/js1_8_5/regress/regress-665355.js
new file mode 100644
index 000000000..ef91161c4
--- /dev/null
+++ b/js/src/tests/js1_8_5/regress/regress-665355.js
@@ -0,0 +1,16 @@
+var x = new ArrayBuffer(2);
+
+var test = function(newProto) {
+try {
+ x.__proto__ = newProto;
+ return false;
+} catch(e) {
+ return true;
+}
+}
+
+assertEq(test(x), true);
+assertEq(test({}), true);
+assertEq(test(null), true);
+
+reportCompare(true, true);