fix corner case in inline (#5267)

fixes #5266
This commit is contained in:
Alex Lam S.L
2022-01-04 20:25:48 +00:00
committed by GitHub
parent 3a3666a94e
commit d46eb69320
2 changed files with 42 additions and 3 deletions

View File

@@ -12898,8 +12898,8 @@ Compressor.prototype.compress = function(node) {
return cond.negate(compressor);
case "??":
return make_node(AST_Binary, self, {
operator: "===",
left: make_node(AST_Undefined, self).transform(compressor),
operator: "==",
left: make_node(AST_Null, self),
right: cond,
});
}