We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1f6d7a commit 58a0c1fCopy full SHA for 58a0c1f
fallback/utf16.js
@@ -161,7 +161,7 @@ export function isWellFormed(u16) {
161
const b = u32[i + 1]
162
const c = u32[i + 2]
163
const d = u32[i + 3]
164
- if (a & 0x80_00_80_00 || b & 0x80_00_80_00 || c & 0x80_00_80_00 || d & 0x80_00_80_00) break
+ if ((a | b | c | d) & 0x80_00_80_00) break
165
}
166
167
for (; i < u32length; i++) if (u32[i] & 0x80_00_80_00) break
0 commit comments