Skip to content

Commit 7c3b29d

Browse files
committed
chore: bugsnag crash log fix and more logs
1 parent cd96356 commit 7c3b29d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/worker/file-Indexing-Worker-thread.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,11 @@ function addFilesToCache(updateObject) {
258258
return (changedFilesAlreadyInList.indexOf(path) === -1) ? true : false;
259259
}
260260
newFiles = changedFilesAlreadyInList.filter(isNotAlreadyInList);
261-
files.push.apply(files, newFiles);
261+
if(!files){
262+
console.error("file indexing worker: addFilesToCache called before initCache!!!");
263+
files = [];
264+
}
265+
files.push(...newFiles);
262266
}
263267

264268
/**

0 commit comments

Comments
 (0)