From 8eedbc010aa8ab73cee9e506f3035449fbd407bf Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 29 Jan 2019 22:53:00 -0800 Subject: [PATCH] Found var nit. --- src/entry.js | 6 +++--- src/error/mask-stack-trace.js | 6 +++--- src/module/internal/load.js | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/entry.js b/src/entry.js index 7990420b4..0fc9b86e3 100644 --- a/src/entry.js +++ b/src/entry.js @@ -266,10 +266,10 @@ class Entry { entry.type === TYPE_CJS) { const { bridged } = shared const exported = entry.module.exports - const found = bridged.get(exported) + const foundEntry = bridged.get(exported) - if (found !== void 0) { - entry = found + if (foundEntry !== void 0) { + entry = foundEntry bridged.delete(exported) } } diff --git a/src/error/mask-stack-trace.js b/src/error/mask-stack-trace.js index 5a14c7fdb..79ac44938 100644 --- a/src/error/mask-stack-trace.js +++ b/src/error/mask-stack-trace.js @@ -142,10 +142,10 @@ function init() { } } - let arrowFound = false + let foundArrow = false stack = stack.replace(arrowRegExp, (match, decoratorLine, decoratorArrow, decoratorNewline = "") => { - arrowFound = true + foundArrow = true if (useDecoratorLine) { contentLine = decoratorLine @@ -176,7 +176,7 @@ function init() { : contentLine + (contentLine ? "\n\n" : "\n") }) - if (arrowFound) { + if (foundArrow) { return stack } diff --git a/src/module/internal/load.js b/src/module/internal/load.js index ec5a614fc..ed1af7d14 100644 --- a/src/module/internal/load.js +++ b/src/module/internal/load.js @@ -25,9 +25,9 @@ function load(filename, parent, isMain = false, cache, loader) { let entry let mod = cache[filename] - const found = mod !== void 0 + const foundMod = mod !== void 0 - if (found) { + if (foundMod) { const children = parent != null && parent.children if (Array.isArray(children) && @@ -60,7 +60,7 @@ function load(filename, parent, isMain = false, cache, loader) { } } - if (! found) { + if (! foundMod) { const { _compile } = mod mod._compile = (content, filename) => {