| 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: | |
| 6 |
The [[Class]] property of the newly constructed object |
| 7 |
is set to "Boolean" |
| 8 |
esid: sec-boolean-constructor |
| 9 |
es5id: 15.6.2.1_A4 |
| 10 |
description: For testing toString function is used |
| 11 |
---*/ |
| 12 |
|
| 13 |
delete Boolean.prototype.toString; |
| 14 |
|
| 15 |
var obj = new Boolean(); |
| 16 |
|
| 17 |
//CHECK#1 |
| 18 |
if (obj.toString() !== "[object Boolean]") { |
| 19 |
$ERROR('#1: The [[Class]] property of the newly constructed object is set to "Boolean"'); |
| 20 |
} |