Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/S15.2.3_A3.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: Object constructor has length property whose value is 1
6 es5id: 15.2.3_A3
7 description: Checking Object.length
8 ---*/
9
10 //CHECK#1
11 if (!Object.hasOwnProperty("length")) {
12 $ERROR('#1: The Object constructor has the property "length"');
13 }
14
15 //CHECK#2
16 if (Object.length !== 1) {
17 $ERROR('#2: Object.length property value should be 1');
18 }