summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/RegExp/Symbol.species/symbol-species.js
blob: 8a2a8be11de046c4fea7f4b415dd82963deab6e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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);