|
|
|
The initial value of Boolean.prototype Boolean.prototype is the . This property has the attributes { [[Writable]]: false , [[Enumerable]]: false , [[Configurable]]: false }. The Boolean prototype object : is %Boolean.prototype% . is an . is itself a Boolean object; it has a [[BooleanData]] internal slot with the value false . has a [[Prototype]] internal slot whose value is The abstract operation thisBooleanValue takes argument value . It performs the following steps when called: 1. If ( value ) is Boolean, return value . 2. If ( value ) is Object and value has a [[BooleanData]] internal slot, then a. Let b be value .[[BooleanData]]. b. : b ) is Boolean. c. Return b . 3. Throw a TypeError exception. The initial value of Boolean.prototype.constructor Boolean.prototype.constructor is . The following steps are taken: 1. Let b be ? this value). 2. If b is true , return "true" ; else return "false" . The following steps are taken: 1. Return ? ( this value). Boolean instances are ordinary objects that inherit properties from the have a [[BooleanData]] internal slot. The [[BooleanData]] internal slot is the Boolean value represented by this Boolean 20.3.2.1 Boolean.prototype 20.3.3 Properties of the Boolean Prototype Object 20.3.3.1 Boolean.prototype.constructor 20.3.3.2 Boolean.prototype.toString ( ) 20.3.3.3 Boolean.prototype.valueOf ( ) 20.3.4 Properties of Boolean Instances 20.4 Symbol Objects 496 |