Make utf-8 decoding stricter in JavaScript
This commit is contained in:
parent
b12d49739c
commit
2532b42959
|
@ -6,7 +6,7 @@ import type { Writer, PreserveWritable } from './writer';
|
|||
import { decodeBase64, encodeBase64 } from './base64';
|
||||
|
||||
const textEncoder = new TextEncoder();
|
||||
const textDecoder = new TextDecoder();
|
||||
const textDecoder = new TextDecoder('utf-8', { fatal: true });
|
||||
|
||||
export const IsPreservesBytes = Symbol.for('IsPreservesBytes');
|
||||
|
||||
|
|
Loading…
Reference in New Issue