Debian Codegraph @

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