mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 22:01:47 +00:00
26 lines
418 B
TypeScript
26 lines
418 B
TypeScript
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,
|
|
},
|
|
},
|
|
}),
|
|
];
|