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 f7ea5c5 commit a80e4e2Copy full SHA for a80e4e2
src/parser/deserializer.ts
@@ -241,7 +241,7 @@ function deserializeObject(
241
242
// shouldValidateKey is true if the key should be validated, false otherwise
243
let shouldValidateKey = true;
244
- if (globalUTFValidation || (utf8KeysSet && utf8KeysSet.has(name))) {
+ if (globalUTFValidation || utf8KeysSet?.has(name)) {
245
shouldValidateKey = validationSetting;
246
} else {
247
shouldValidateKey = !validationSetting;
0 commit comments