From 3a889100c2588cf96ff34d07599bae3e02d6e9f3 Mon Sep 17 00:00:00 2001 From: Pip Date: Fri, 3 Oct 2025 10:13:07 +0100 Subject: [PATCH] fix "emitProgress is not defined" error, when run in-browser in a strict mode build. --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index cebb10e..c700c28 100644 --- a/index.js +++ b/index.js @@ -194,9 +194,9 @@ var reflib = module.exports = { * @param {number} cur Number of refs parsed so far * @param {number} max Total number of refs */ - emitProgress = _.throttle(function(cur, max, emitter) { + var emitProgress = _.throttle(function(cur, max, emitter) { emitter.emit('progress', cur, max); - }, 200, { trailing: false }), + }, 200, { trailing: false }); supported.driver.parse(input) .on('error', function(err) {