Backed out 3 changesets (bug 1892041) for causing failures on async-module-does-not...
[gecko.git] / js / src / tests / test262 / built-ins / NativeErrors / ReferenceError / prototype / name.js
blob563ec73485f909995e568105ee7a6b5158682ed0
1 // Copyright (C) 2015 AndrĂ© Bargull. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 es6id: 19.5.6.3.3
6 description: >
7   The initial value of ReferenceError.prototype.name is "ReferenceError".
8 info: |
9   The initial value of the name property of the prototype for a given NativeError
10   constructor is a string consisting of the name of the constructor (the name used
11   instead of NativeError).
13   17 ECMAScript Standard Built-in Objects:
14     Every other data property described in clauses 18 through 26 and in Annex B.2 has
15     the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true }
16     unless otherwise specified.
17 includes: [propertyHelper.js]
18 ---*/
20 assert.sameValue(ReferenceError.prototype.name, "ReferenceError");
22 verifyNotEnumerable(ReferenceError.prototype, "name");
23 verifyWritable(ReferenceError.prototype, "name");
24 verifyConfigurable(ReferenceError.prototype, "name");
26 reportCompare(0, 0);