const { text_decoder_new, text_decoder_decode } = Deno.core.ops;
class TextDecoder {
#handle;
constructor() {
this.#handle = text_decoder_new();
}
decode(input) {
return text_decoder_decode(this.#handle, input);
}
}
globalThis.TextDecoder = TextDecoder;