summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/ArrayBuffer/getter-name.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/ecma_6/ArrayBuffer/getter-name.js')
-rw-r--r--js/src/tests/ecma_6/ArrayBuffer/getter-name.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/src/tests/ecma_6/ArrayBuffer/getter-name.js b/js/src/tests/ecma_6/ArrayBuffer/getter-name.js
new file mode 100644
index 000000000..434782bfe
--- /dev/null
+++ b/js/src/tests/ecma_6/ArrayBuffer/getter-name.js
@@ -0,0 +1,10 @@
+var BUGNUMBER = 1180290;
+var summary = 'ArrayBuffer getters should have get prefix';
+
+print(BUGNUMBER + ": " + summary);
+
+assertEq(Object.getOwnPropertyDescriptor(ArrayBuffer, Symbol.species).get.name, "get [Symbol.species]");
+assertEq(Object.getOwnPropertyDescriptor(ArrayBuffer.prototype, "byteLength").get.name, "get byteLength");
+
+if (typeof reportCompare === 'function')
+ reportCompare(true, true);