diff --git a/lib/JavascriptParserHelpers.js b/lib/JavascriptParserHelpers.js index 594522680..866404fed 100644 --- a/lib/JavascriptParserHelpers.js +++ b/lib/JavascriptParserHelpers.js @@ -58,7 +58,7 @@ exports.evaluateToIdentifier = (identifier, truthy) => { exports.expressionIsUnsupported = (parser, message) => { return function unsupportedExpression(expr) { - const dep = new ConstDependency("(void 0)", expr.range, false); + const dep = new ConstDependency("(void 0)", expr.range, null); dep.loc = expr.loc; parser.state.current.addDependency(dep); if (!parser.state.module) return; diff --git a/lib/dependencies/HarmonyTopLevelThisParserPlugin.js b/lib/dependencies/HarmonyTopLevelThisParserPlugin.js index d0bfb9de6..57c9c8868 100644 --- a/lib/dependencies/HarmonyTopLevelThisParserPlugin.js +++ b/lib/dependencies/HarmonyTopLevelThisParserPlugin.js @@ -16,7 +16,7 @@ class HarmonyTopLevelThisParserPlugin { const module = parser.state.module; const isHarmony = !!(module.buildMeta && module.buildMeta.exportsType); if (isHarmony) { - const dep = new ConstDependency("undefined", node.range, false); + const dep = new ConstDependency("undefined", node.range, null); dep.loc = node.loc; parser.state.current.addDependency(dep); }