Debian Codegraph @

js/src/tests/test262/built-ins/Error/length.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 var err1 = Error("err");
11 assert.sameValue(err1.constructor.length, 1, 'The value of err1.constructor.length is 1');
12 assert.sameValue(Error.constructor.length, 1, 'The value of Error.constructor.length is 1');
13
14 reportCompare(0, 0);