name.js (1845B)
1 // Copyright (C) 2024 Igalia S.L. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 esid: sec-built-in-function-objects 6 description: > 7 JSON.isRawJSON.name value and descriptor. 8 info: | 9 Every built-in function object, including constructors, has a *"name"* 10 property whose value is a String. Unless otherwise specified, this value is 11 the name that is given to the function in this specification. Functions that 12 are identified as anonymous functions use the empty String as the value of 13 the *"name"* property. For functions that are specified as properties of 14 objects, the name value is the property name string used to access the 15 function. Functions that are specified as get or set accessor functions of 16 built-in properties have *"get"* or *"set"* (respectively) passed to the 17 prefix parameter when calling CreateBuiltinFunction. 18 19 The value of the *"name"* property is explicitly specified for each built-in 20 function whose property key is a Symbol value. If such an explicitly 21 specified value starts with the prefix *"get "* or *"set "* and the function 22 for which it is specified is a get or set accessor function of a built-in 23 property, the value without the prefix is passed to the name parameter, and 24 the value *"get"* or *"set"* (respectively) is passed to the prefix 25 parameter when calling CreateBuiltinFunction. 26 27 Unless otherwise specified, the *"name"* property of a built-in function 28 object has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, 29 [[Configurable]]: *true* }. 30 31 includes: [propertyHelper.js] 32 features: [json-parse-with-source] 33 ---*/ 34 35 verifyProperty(JSON.isRawJSON, 'name', { 36 value: "isRawJSON", 37 enumerable: false, 38 writable: false, 39 configurable: true 40 }); 41 42 reportCompare(0, 0);