TypeError: Result of expression 'includePaths[i].includes' [undefined] is not a function.

This commit is contained in:
Roman Telezhynskyi 2023-08-18 14:23:29 +03:00
parent 5e36a24996
commit b46ca34d84

View File

@ -823,7 +823,7 @@ Module {
for(var i = 0; i < includePaths.length; i++) for(var i = 0; i < includePaths.length; i++)
{ {
if (includePaths[i].includes("xerces-c")) if (typeof includePaths[i] === 'string' && includePaths[i].includes("xerces-c"))
{ {
paths.push(includePaths[i]); paths.push(includePaths[i]);
} }