diff options
author | 2022-08-18 19:06:29 -0700 | |
---|---|---|
committer | 2022-08-18 19:06:29 -0700 | |
commit | e3c2a95e5ff4e6c6b63839f4773cc3f5aeadddc8 (patch) | |
tree | ec2e43f3a33bdd784473022b00121f4c597c8e09 /src/bun.js/webcore/encoding.classes.ts | |
parent | e45ddc086fe6b3e7a32aa45607f5e3d570998137 (diff) | |
download | bun-e3c2a95e5ff4e6c6b63839f4773cc3f5aeadddc8.tar.gz bun-e3c2a95e5ff4e6c6b63839f4773cc3f5aeadddc8.tar.zst bun-e3c2a95e5ff4e6c6b63839f4773cc3f5aeadddc8.zip |
Faster TextDecoder
Diffstat (limited to 'src/bun.js/webcore/encoding.classes.ts')
-rw-r--r-- | src/bun.js/webcore/encoding.classes.ts | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/bun.js/webcore/encoding.classes.ts b/src/bun.js/webcore/encoding.classes.ts new file mode 100644 index 000000000..777f3715e --- /dev/null +++ b/src/bun.js/webcore/encoding.classes.ts @@ -0,0 +1,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, + }, + }, + }), +]; |