dino_runtime 0.1.1

A Rust runtime for Deno
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
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;