* Set a property with normal undefined and type-checks
(propertyName, value, propertyType)
| 610 | * Set a property with normal undefined and type-checks |
| 611 | */ |
| 612 | _setProperty(propertyName, value, propertyType) { |
| 613 | let propertyChecksPassed = this._checkProperty( |
| 614 | propertyName, |
| 615 | value, |
| 616 | [this._checkUndefined, this._createTypeCheck(propertyType)]); |
| 617 | |
| 618 | if (propertyChecksPassed) { |
| 619 | this[propertyName] = value; |
| 620 | } |
| 621 | |
| 622 | return propertyChecksPassed; |
| 623 | } |
| 624 | |
| 625 | /** |
| 626 | * Fail if the value is undefined. |
no test coverage detected