length.js (1433B)
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-asyncdisposablestack 7 description: AsyncDisposableStack.length property descriptor 8 info: | 9 AsyncDisposableStack ( ) 10 11 17 ECMAScript Standard Built-in Objects 12 13 Every built-in function object, including constructors, has a length 14 property whose value is an integer. Unless otherwise specified, this 15 value is equal to the largest number of named arguments shown in the 16 subclause headings for the function description. Optional parameters 17 (which are indicated with brackets: [ ]) or rest parameters (which 18 are shown using the form «...name») are not included in the default 19 argument count. 20 21 Unless otherwise specified, the length property of a built-in 22 function object has the attributes { [[Writable]]: false, 23 [[Enumerable]]: false, [[Configurable]]: true }. 24 includes: [propertyHelper.js] 25 features: [explicit-resource-management] 26 ---*/ 27 28 verifyProperty(AsyncDisposableStack, 'length', { 29 value: 0, 30 writable: false, 31 enumerable: false, 32 configurable: true 33 }); 34 35 reportCompare(0, 0);