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