summaryrefslogtreecommitdiff
path: root/tools/lint-md/lint-md.mjs
diff options
context:
space:
mode:
authorNode.js GitHub Bot <github-bot@iojs.org>2022-02-27 14:33:39 -0800
committerDanielle Adams <adamzdanielle@gmail.com>2022-04-23 22:47:08 -0400
commit8532f83c8e6b9f0714af9fca1b5414026f85d20b (patch)
treec4fda2b9d22b7b129544b2ca20176f018aeae974 /tools/lint-md/lint-md.mjs
parentd40f5a177a45c649c8bd3c85ac4fab44d43ee228 (diff)
downloadnode-new-8532f83c8e6b9f0714af9fca1b5414026f85d20b.tar.gz
tools: update lint-md rollup dependencies
Update to @rollup/plugin-commonjs@21.0.2 rollup@2.68.0 PR-URL: https://github.com/nodejs/node/pull/42141 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
Diffstat (limited to 'tools/lint-md/lint-md.mjs')
-rw-r--r--tools/lint-md/lint-md.mjs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lint-md/lint-md.mjs b/tools/lint-md/lint-md.mjs
index e4108212d9..0e4f89553b 100644
--- a/tools/lint-md/lint-md.mjs
+++ b/tools/lint-md/lint-md.mjs
@@ -172,9 +172,9 @@ function wrap(middleware, callback) {
parameters.push(done);
}
try {
- result = middleware(...parameters);
+ result = middleware.apply(this, parameters);
} catch (error) {
- const exception = error;
+ const exception = (error);
if (fnExpectsCallback && called) {
throw exception
}