diff --git a/acorn-walk/src/index.js b/acorn-walk/src/index.js index 924939a67..1f5ce4b14 100644 --- a/acorn-walk/src/index.js +++ b/acorn-walk/src/index.js @@ -73,7 +73,7 @@ export function full(node, callback, baseVisitor, state, override) { ;(function c(node, st, override) { let type = override || node.type baseVisitor[type](node, st, c) - if (last != node) { + if (last !== node) { callback(node, st, type) last = node } @@ -90,7 +90,7 @@ export function fullAncestor(node, callback, baseVisitor, state) { let isNew = node !== ancestors[ancestors.length - 1] if (isNew) ancestors.push(node) baseVisitor[type](node, st, c) - if (last != node) { + if (last !== node) { callback(node, st || ancestors, ancestors, type) last = node }