fix op declaration in simplify comparison operator plugin
This commit is contained in:
parent
83dca691d2
commit
aeaa4e1d32
@ -2,8 +2,9 @@ export default function () {
|
||||
return {
|
||||
visitor: {
|
||||
BinaryExpression(path) {
|
||||
let { node, op } = path;
|
||||
let { node } = path;
|
||||
|
||||
let op = node.operator;
|
||||
if (op !== "===" && op !== "!==") return;
|
||||
|
||||
let left = path.get("left");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user