Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Error/S15.11.3_A2_T1.js

raw
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 info: The length property value is 1
6 es5id: 15.11.3_A2_T1
7 description: Checking length property
8 ---*/
9
10 //////////////////////////////////////////////////////////////////////////////
11 //CHECK#1
12 var err1 = Error("err");
13 if (err1.constructor.length !== 1) {
14 $ERROR('#1: var err1=Error("err"); err1.constructor.length===1. Actual: ' + err1.constructor.length);
15 }
16 //
17 //////////////////////////////////////////////////////////////////////////////
18
19 //////////////////////////////////////////////////////////////////////////////
20 //CHECK#2
21 if (Error.constructor.length !== 1) {
22 $ERROR('#2: Error.constructor.length===1. Actual: ' + Error.constructor.length);
23 }
24 //
25 //////////////////////////////////////////////////////////////////////////////