[Pkg-javascript-commits] [node-module-deps] 82/444: pause/resume instead of emit on nexttick
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 15 09:47:45 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-module-deps.
commit 62bf4c4317997c2fcea9454c68d0e28729fdfd27
Author: James Halliday <mail at substack.net>
Date: Fri May 17 14:27:42 2013 -0700
pause/resume instead of emit on nexttick
---
index.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/index.js b/index.js
index 7c51902..0acbb1d 100644
--- a/index.js
+++ b/index.js
@@ -29,7 +29,9 @@ module.exports = function (mains, opts) {
mains.forEach(function (main) { walk(main, top) });
if (mains.length === 0) {
- process.nextTick(output.queue.bind(output, null));
+ output.pause();
+ output.queue(null);
+ process.nextTick(function () { output.resume() });
}
return output;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-module-deps.git
More information about the Pkg-javascript-commits
mailing list