summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/RegExp/Symbol.species/symbol-species.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/RegExp/Symbol.species/symbol-species.js')
-rw-r--r--js/src/tests/test262/built-ins/RegExp/Symbol.species/symbol-species.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/RegExp/Symbol.species/symbol-species.js b/js/src/tests/test262/built-ins/RegExp/Symbol.species/symbol-species.js
new file mode 100644
index 0000000000..8a2a8be11d
--- /dev/null
+++ b/js/src/tests/test262/built-ins/RegExp/Symbol.species/symbol-species.js
@@ -0,0 +1,23 @@
+// Copyright 2015 Cubane Canada, Inc. All rights reserved.
+// See LICENSE for details.
+
+/*---
+info: |
+ RegExp has a property at `Symbol.species`
+esid: sec-get-regexp-@@species
+author: Sam Mikes
+description: RegExp[Symbol.species] exists per spec
+includes: [propertyHelper.js]
+features: [Symbol.species]
+---*/
+
+var desc = Object.getOwnPropertyDescriptor(RegExp, Symbol.species);
+
+assert.sameValue(desc.set, undefined);
+assert.sameValue(typeof desc.get, 'function');
+
+verifyNotWritable(RegExp, Symbol.species, Symbol.species);
+verifyNotEnumerable(RegExp, Symbol.species);
+verifyConfigurable(RegExp, Symbol.species);
+
+reportCompare(0, 0);