Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / DataView / prototype / getInt8 / length.js
blobb9ec2cc2ddedb42bf0c39d363c9d3e2b1079b008
1 // Copyright (C) 2015 André Bargull. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: sec-dataview.prototype.getint8
6 description: >
7   DataView.prototype.getInt8.length is 1.
8 info: |
9   DataView.prototype.getInt8 ( byteOffset )
11   17 ECMAScript Standard Built-in Objects:
12     Every built-in Function object, including constructors, has a length
13     property whose value is an integer. Unless otherwise specified, this
14     value is equal to the largest number of named arguments shown in the
15     subclause headings for the function description, including optional
16     parameters. However, rest parameters shown using the form “...name”
17     are not included in the default argument count.
19     Unless otherwise specified, the length property of a built-in Function
20     object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
21     [[Configurable]]: true }.
22 includes: [propertyHelper.js]
23 ---*/
25 verifyProperty(DataView.prototype.getInt8, "length", {
26   value: 1,
27   writable: false,
28   enumerable: false,
29   configurable: true
30 });
32 reportCompare(0, 0);