1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
From: Julian Gilbey <jdg@debian.org>
Date: Thu, 20 Nov 2025 22:56:50 +0100
Subject: fix for async >= 3
Forwarded: not-needed
Last-Update: 2024-09-25
---
lib/command/instrument.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/command/instrument.js b/lib/command/instrument.js
index d08d6b8..33b6b3b 100644
--- a/lib/command/instrument.js
+++ b/lib/command/instrument.js
@@ -114,14 +114,14 @@ function processFiles(instrumenter, inputDir, outputDir, relativeNames, extensio
count += 1;
});
- q.drain = function () {
+ q.drain(() => {
var endTime = new Date().getTime();
console.log('\nProcessed [' + count + '] files in ' + Math.floor((endTime - startTime) / 1000) + ' secs');
if (errors.length > 0) {
console.log('The following ' + errors.length + ' file(s) had errors and were copied as-is');
console.log(errors);
}
- };
+ });
}
|