aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/webcore/encoding.classes.ts
blob: 777f3715ee82dc8697a21ba6e7ef1a4806d37238 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { define } from "../scripts/class-definitions";

export default [
  define({
    name: "TextDecoder",
    construct: true,
    finalize: true,
    JSType: "0b11101110",
    klass: {},
    proto: {
      encoding: {
        getter: "getEncoding",
        cache: true,
      },
      fatal: {
        getter: "getFatal",
      },

      decode: {
        fn: "decode",
        length: 1,
      },
    },
  }),
];