+ if (!manifest.requires) {
+ return false;
+ }
for (let lib_uri of Object.getOwnPropertyNames(manifest.requires)) {
If the argument to Object.getOwnPropertyNames is not an object (including if it's null), then a TypeError is thrown. This guard statement prevents the issue from occurring.
If the argument to
Object.getOwnPropertyNames
is not an object (including if it's null), then a TypeError is thrown. This guard statement prevents the issue from occurring.