Debian Codegraph @

js/src/tests/test262/built-ins/Boolean/S15.6.1.1_A2.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() returns false
6 esid: sec-terms-and-definitions-boolean-value
7 description: Call Boolean() and check result
8 ---*/
9 assert.sameValue(typeof Boolean(), "boolean", 'The value of `typeof Boolean()` is expected to be "boolean"');
10 assert.sameValue(Boolean(), false, 'Boolean() must return false');
11
12 reportCompare(0, 0);