aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/webcore/encoding.classes.ts
diff options
context:
space:
mode:
authorGravatar WingLim <winglims@gmail.com> 2023-09-21 09:44:05 +0800
committerGravatar GitHub <noreply@github.com> 2023-09-20 18:44:05 -0700
commit5f66b4e729105286863a13955b1ed8897b45210e (patch)
treecec6d517bac47ccd52f7e8aeef5f99fb98412008 /src/bun.js/webcore/encoding.classes.ts
parent7319142fd866d8314364d769f401a492892f7d63 (diff)
downloadbun-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.ts3
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",