* @returns {Promise }
()
| 295 | * @returns {Promise<string>} |
| 296 | */ |
| 297 | text() { |
| 298 | if (!isBlob(this)) |
| 299 | return PromiseReject(new ERR_INVALID_THIS('Blob')); |
| 300 | |
| 301 | dec ??= new TextDecoder(); |
| 302 | |
| 303 | return PromisePrototypeThen( |
| 304 | arrayBuffer(this), |
| 305 | (buffer) => dec.decode(buffer)); |
| 306 | } |
| 307 | |
| 308 | /** |
| 309 | * @returns {Promise<Uint8Array>} |
no test coverage detected