summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/ArrayBuffer/bug1777413.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/non262/ArrayBuffer/bug1777413.js')
-rw-r--r--js/src/tests/non262/ArrayBuffer/bug1777413.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/src/tests/non262/ArrayBuffer/bug1777413.js b/js/src/tests/non262/ArrayBuffer/bug1777413.js
new file mode 100644
index 0000000000..3c58aecbfc
--- /dev/null
+++ b/js/src/tests/non262/ArrayBuffer/bug1777413.js
@@ -0,0 +1,7 @@
+// |reftest| skip-if(!xulRuntime.shell) -- needs shell functions
+
+var b = createExternalArrayBuffer(0);
+assertEq(b.byteLength, 0);
+
+if (typeof reportCompare === 'function')
+ reportCompare(true, true);