| 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 |
es5id: 15.6.1.1_A2 |
| 8 |
description: Call Boolean() and check result |
| 9 |
---*/ |
| 10 |
|
| 11 |
//CHECK#1 |
| 12 |
if (typeof Boolean() !== "boolean") { |
| 13 |
$ERROR('#1: typeof Boolean() should be "boolean", actual is "' + typeof Boolean() + '"'); |
| 14 |
} |
| 15 |
|
| 16 |
//CHECK#2 |
| 17 |
if (Boolean() !== false) { |
| 18 |
$ERROR('#2: Boolean() should be false'); |
| 19 |
} |