summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/Iterator/name.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/non262/Iterator/name.js')
-rw-r--r--js/src/tests/non262/Iterator/name.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/tests/non262/Iterator/name.js b/js/src/tests/non262/Iterator/name.js
new file mode 100644
index 0000000000..c11e570228
--- /dev/null
+++ b/js/src/tests/non262/Iterator/name.js
@@ -0,0 +1,13 @@
+// |reftest| skip-if(!this.hasOwnProperty('Iterator')) -- Iterator is not enabled unconditionally
+/*---
+ The "name" property of Iterator
+---*/
+
+const propDesc = Reflect.getOwnPropertyDescriptor(Iterator, 'name');
+assertEq(propDesc.value, 'Iterator');
+assertEq(propDesc.writable, false);
+assertEq(propDesc.enumerable, false);
+assertEq(propDesc.configurable, true);
+
+if (typeof reportCompare === 'function')
+ reportCompare(0, 0);