Skip to content
This repository has been archived by the owner on Apr 2, 2019. It is now read-only.

Fix "Maximum call stack size exceeded" warnings when processing lots of #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion index.js
Expand Up @@ -48,7 +48,10 @@ module.exports = function (mapper) {
if (writeQueue.hasOwnProperty(nextToWrite)) {
var dataToWrite = writeQueue[nextToWrite]
delete writeQueue[nextToWrite]
return queueData(dataToWrite, nextToWrite)
process.nextTick(function() {
queueData(dataToWrite, nextToWrite);
})
return
}

outputs ++
Expand Down