close() rejects the promise when the decoder is not complete, which triggers unhandled rejection handler when unhandled.
- If [[ImageTrackList]] is empty, reject [[ready promise]] with exception. Otherwise perform these steps,
(And perhaps it should link to https://webidl.spec.whatwg.org/#reject, right now it's plaintext)
close()rejects the promise when the decoder is not complete, which triggers unhandled rejection handler when unhandled.(And perhaps it should link to https://webidl.spec.whatwg.org/#reject, right now it's plaintext)