chore(marshal): Add an assertion to fix a lint failure
MODIFY
packages/marshal/src/marshal-justin.js
packages/marshal/src/marshal-justin.js
@@ -375,6 +375,11 @@ const decodeToJustin = (encoding, shouldIndent = false) => {
assert(rest !== null);
const names = ownKeys(rest);
for (const name of names) {
+ assert.typeof(
+ name,
+ 'string',
+ X`Property name ${name} of ${rest} must be a string`,
+ );
decodeProperty(name, rest[name]);
}
}

chore(marshal): Add an assertion to fix a lint failure