Backed out 3 changesets (bug 1892041) for causing failures on async-module-does-not...
[gecko.git] / js / src / tests / test262 / built-ins / RegExp / Symbol.species / symbol-species.js
blob8a2a8be11de046c4fea7f4b415dd82963deab6e9
1 // Copyright 2015 Cubane Canada, Inc.  All rights reserved.
2 // See LICENSE for details.
4 /*---
5 info: |
6  RegExp has a property at `Symbol.species`
7 esid: sec-get-regexp-@@species
8 author: Sam Mikes
9 description: RegExp[Symbol.species] exists per spec
10 includes: [propertyHelper.js]
11 features: [Symbol.species]
12 ---*/
14 var desc = Object.getOwnPropertyDescriptor(RegExp, Symbol.species);
16 assert.sameValue(desc.set, undefined);
17 assert.sameValue(typeof desc.get, 'function');
19 verifyNotWritable(RegExp, Symbol.species, Symbol.species);
20 verifyNotEnumerable(RegExp, Symbol.species);
21 verifyConfigurable(RegExp, Symbol.species);
23 reportCompare(0, 0);