name.js (1529B)
1 // |reftest| shell-option(--enable-explicit-resource-management) skip-if(!(this.hasOwnProperty('getBuildConfiguration')&&getBuildConfiguration('explicit-resource-management'))||!xulRuntime.shell) -- explicit-resource-management is not enabled unconditionally, requires shell-options 2 // Copyright (C) 2023 Ron Buckton. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 5 /*--- 6 esid: sec-properties-of-the-suppressederror-constructor 7 description: SuppressedError.name property descriptor 8 info: | 9 Properties of the SuppressedError Constructor 10 11 - has a name property whose value is the String value "SuppressedError". 12 13 17 ECMAScript Standard Built-in Objects 14 15 Every built-in function object, including constructors, that is not 16 identified as an anonymous function has a name property whose value 17 is a String. Unless otherwise specified, this value is the name that 18 is given to the function in this specification. For functions that 19 are specified as properties of objects, the name value is the 20 property name string used to access the function. [...] 21 22 Unless otherwise specified, the name property of a built-in function 23 object, if it exists, has the attributes { [[Writable]]: false, 24 [[Enumerable]]: false, [[Configurable]]: true }. 25 includes: [propertyHelper.js] 26 features: [explicit-resource-management] 27 ---*/ 28 29 verifyProperty(SuppressedError, 'name', { 30 value: 'SuppressedError', 31 writable: false, 32 enumerable: false, 33 configurable: true 34 }); 35 36 reportCompare(0, 0);