Fix typings

This commit is contained in:
Florent Cailhol 2018-12-05 19:21:18 +01:00
parent bfb9df6c20
commit 29bfa35cc7
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);
}