Debian Codegraph @

js/src/tests/test262/built-ins/Boolean/S15.6.2.1_A4.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: |
6 The [[Class]] property of the newly constructed object
7 is set to "Boolean"
8 esid: sec-boolean-constructor
9 description: For testing toString function is used
10 ---*/
11
12 delete Boolean.prototype.toString;
13
14 var obj = new Boolean();
15
16 assert.sameValue(obj.toString(), "[object Boolean]", 'obj.toString() must return "[object Boolean]"');
17
18 reportCompare(0, 0);