Backed out 3 changesets (bug 1892041) for causing failures on async-module-does-not...
[gecko.git] / js / src / tests / test262 / built-ins / RegExp / prototype / Symbol.replace / name.js
blob5d6dbb13e74f74b5e42df22413b65a09995bcce8
1 // Copyright (C) 2015 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 es6id: 21.2.5.8
5 description: RegExp.prototype[Symbol.replace] `name` property
6 info: |
7     The value of the name property of this function is "[Symbol.replace]".
9     ES6 Section 17:
11     [...]
13     Unless otherwise specified, the name property of a built-in Function
14     object, if it exists, has the attributes { [[Writable]]: false,
15     [[Enumerable]]: false, [[Configurable]]: true }.
16 includes: [propertyHelper.js]
17 features: [Symbol.replace]
18 ---*/
20 assert.sameValue(RegExp.prototype[Symbol.replace].name, '[Symbol.replace]');
22 verifyNotEnumerable(RegExp.prototype[Symbol.replace], 'name');
23 verifyNotWritable(RegExp.prototype[Symbol.replace], 'name');
24 verifyConfigurable(RegExp.prototype[Symbol.replace], 'name');
26 reportCompare(0, 0);