Backed out 3 changesets (bug 1892041) for causing failures on async-module-does-not...
[gecko.git] / js / src / tests / test262 / built-ins / Date / prototype / Symbol.toPrimitive / name.js
blobe1e40be0feedd2b841fe6966ba4dce25e6b3d33e
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 esid: sec-date.prototype-@@toprimitive
5 description: Date.prototype[Symbol.toPrimitive] `name` property
6 info: |
7     The value of the name property of this function is "[Symbol.toPrimitive]".
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 features: [Symbol.toPrimitive]
17 includes: [propertyHelper.js]
18 ---*/
20 assert.sameValue(
21   Date.prototype[Symbol.toPrimitive].name, '[Symbol.toPrimitive]'
24 verifyNotEnumerable(Date.prototype[Symbol.toPrimitive], 'name');
25 verifyNotWritable(Date.prototype[Symbol.toPrimitive], 'name');
26 verifyConfigurable(Date.prototype[Symbol.toPrimitive], 'name');
28 reportCompare(0, 0);