* Create a check out of a callback. If the callback * returns false, the check will throw an error.
(check, errorString)
| 645 | * returns false, the check will throw an error. |
| 646 | */ |
| 647 | _createCheckThatThrows(check, errorString) { |
| 648 | return (propertyName, value) => { |
| 649 | if (!check(value)) { |
| 650 | throw new Error(errorString); |
| 651 | } |
| 652 | }; |
| 653 | } |
| 654 | |
| 655 | /** |
| 656 | * Set an array property after checking that the new value is an |
no outgoing calls
no test coverage detected