| // Copyright (C) 2016 the V8 project authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| description: Subclassing Function |
| 19.3.1 The Boolean Constructor |
| The Boolean constructor is designed to be subclassable. It may be used as the |
| value of an extends clause of a class definition. |
| class Bln extends Boolean {} |
| assert.notSameValue(b1, true, 'b1 is an Boolean object'); |
| assert.sameValue(b1.valueOf(), true); |
| assert.notSameValue(b2, false, 'bln is an Boolean object'); |
| assert.sameValue(b2.valueOf(), false); |