length.js (1249B)
1 // |reftest| skip-if(!this.hasOwnProperty('SharedArrayBuffer')) -- SharedArrayBuffer is not enabled unconditionally 2 // Copyright (C) 2018 Leo Balter. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 5 /*--- 6 esid: sec-sharedarraybuffer-constructor 7 description: > 8 SharedArrayBuffer.length is 1. 9 info: | 10 SharedArrayBuffer( length ) 11 12 ECMAScript Standard Built-in Objects: 13 14 Every built-in function object, including constructors, has a length 15 property whose value is an integer. Unless otherwise specified, this 16 value is equal to the largest number of named arguments shown in the 17 subclause headings for the function description. Optional parameters 18 (which are indicated with brackets: [ ]) or rest parameters (which 19 are shown using the form «...name») are not included in the default 20 argument count. 21 22 Unless otherwise specified, the length property of a built-in function 23 object has the attributes { [[Writable]]: false, [[Enumerable]]: false, 24 [[Configurable]]: true }. 25 includes: [propertyHelper.js] 26 features: [SharedArrayBuffer] 27 ---*/ 28 29 verifyProperty(SharedArrayBuffer, "length", { 30 value: 1, 31 enumerable: false, 32 writable: false, 33 configurable: true, 34 }); 35 36 reportCompare(0, 0);