I've recently noticed a few errors coming from the Parser module.
TypeError: Cannot read property 'length' of undefined
It appears that these are the offending lines for most of these cases, however the same issue is repeated a few times in that module. The issue is as follows:
if (parsed === -1) {
parsed = undefined;
}
length = parsed.length;
If parsed is set to -1, then it will be reassigned to undefined, and so will throw the above error when trying to read it's length.
I'd be happy to submit a PR to fix this issue if that would be beneficial.
I've recently noticed a few errors coming from the Parser module.
TypeError: Cannot read property 'length' of undefinedIt appears that these are the offending lines for most of these cases, however the same issue is repeated a few times in that module. The issue is as follows:
If
parsedis set to-1, then it will be reassigned toundefined, and so will throw the above error when trying to read it's length.I'd be happy to submit a PR to fix this issue if that would be beneficial.