Skip to content

Commit

Permalink
fix code example
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Apr 12, 2021
1 parent bded680 commit 703d5b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/helper-compilation-targets.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ module.exports = api => {
return {
visitor: {
MemberExpression(path) {
if (path.isPattern("a.b")) {
if (path.matchesPattern("a.b")) {
if (visited.has(path.node)) return;
visited.add(path.node);
if (optionalChainingSupported) {
Expand Down

0 comments on commit 703d5b6

Please sign in to comment.