Debian Codegraph @

js/src/tests/test262/built-ins/Boolean/S15.6.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: Boolean constructor has length property whose value is 1
6 esid: sec-boolean.prototype
7 description: Checking Boolean.length property
8 ---*/
9 assert(Boolean.hasOwnProperty("length"), 'Boolean.hasOwnProperty("length") must return true');
10 assert.sameValue(Boolean.length, 1, 'The value of Boolean.length is expected to be 1');
11
12 reportCompare(0, 0);