tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

length.js (1106B)


      1 // Copyright (C) 2017 Rick Waldron. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 esid: sec-arraybuffer-constructor
      6 description: >
      7  ArrayBuffer.length is 1.
      8 info: |
      9  ArrayBuffer ( length )
     10 
     11  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 function
     22  object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
     23  [[Configurable]]: true }.
     24 includes: [propertyHelper.js]
     25 features: [ArrayBuffer]
     26 ---*/
     27 
     28 verifyProperty(ArrayBuffer, "length", {
     29  value: 1,
     30  enumerable: false,
     31  writable: false,
     32  configurable: true,
     33 });
     34 
     35 reportCompare(0, 0);