(value)
| 29 | } |
| 30 | |
| 31 | function _hasStandardToString(value) { |
| 32 | return value.toString === Object.prototype.toString || |
| 33 | value.toString === Array.prototype.toString || |
| 34 | // although TypedArrays have a standard Array.prototype.toString, we currently enforce an override to warn |
| 35 | // for legacy behaviour, making the toString non-standard for |
| 36 | // "any Uint8Array instances created in situations where previously a ByteArray would have been created" |
| 37 | _isTypedArray(value) || |
| 38 | value.toString === Date.prototype.toString; |
| 39 | } |
| 40 | |
| 41 | function prettyPrint(value, extra) { |
| 42 | switch (typeof value) { |
no test coverage detected