diff options
author | 2023-09-21 09:44:05 +0800 | |
---|---|---|
committer | 2023-09-20 18:44:05 -0700 | |
commit | 5f66b4e729105286863a13955b1ed8897b45210e (patch) | |
tree | cec6d517bac47ccd52f7e8aeef5f99fb98412008 /src/bun.js/webcore/encoding.classes.ts | |
parent | 7319142fd866d8314364d769f401a492892f7d63 (diff) | |
download | bun-5f66b4e729105286863a13955b1ed8897b45210e.tar.gz bun-5f66b4e729105286863a13955b1ed8897b45210e.tar.zst bun-5f66b4e729105286863a13955b1ed8897b45210e.zip |
feat(encoding): support BOM detection (#5550)
* fix(encoding): export `getIgnoreBOM`
* feat(encoding): support ignoreBOM
* fix(encoding): not replace BOM to 0xFFFD
* chore: use strict equal
Diffstat (limited to 'src/bun.js/webcore/encoding.classes.ts')
-rw-r--r-- | src/bun.js/webcore/encoding.classes.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bun.js/webcore/encoding.classes.ts b/src/bun.js/webcore/encoding.classes.ts index 118dfd09e..7114f210e 100644 --- a/src/bun.js/webcore/encoding.classes.ts +++ b/src/bun.js/webcore/encoding.classes.ts @@ -16,6 +16,9 @@ export default [ fatal: { getter: "getFatal", }, + ignoreBOM: { + getter: "getIgnoreBOM", + }, decode: { fn: "decode", |