Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / NativeErrors / EvalError / length.js
blobdec081fb673d8ad3a72d46a8f52415c2a8210c4a
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 es6id: 19.5.6.2
6 description: >
7   EvalError.length is 1.
8 info: |
9   NativeError ( message )
11   19.5.6.2 Properties of the NativeError Constructors
12     Besides the length property (whose value is 1) [...].
14   17 ECMAScript Standard Built-in Objects:
15     Every built-in Function object, including constructors, has a length
16     property whose value is an integer. Unless otherwise specified, this
17     value is equal to the largest number of named arguments shown in the
18     subclause headings for the function description, including optional
19     parameters. However, rest parameters shown using the form “...name”
20     are not included in the default argument count.
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 ---*/
28 verifyProperty(EvalError, "length", {
29   value: 1,
30   writable: false,
31   enumerable: false,
32   configurable: true
33 });
35 reportCompare(0, 0);