Skip to content

Commit

Permalink
fix: unhandle error when parameter is not set in v3 and v5
Browse files Browse the repository at this point in the history
  • Loading branch information
rzkytmgr authored and ctavan committed Mar 17, 2022
1 parent e6e5412 commit 7feb65c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v35.js
Expand Up @@ -26,7 +26,7 @@ export default function v35(name, version, hashfunc) {
namespace = parse(namespace);
}

if (namespace.length !== 16) {
if (namespace?.length !== 16) {
throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
}

Expand Down

0 comments on commit 7feb65c

Please sign in to comment.