Skip to content

Commit

Permalink
fix: specify console instance methods
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyinws committed Jan 27, 2025
1 parent 272d5e7 commit 907b36d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/utils/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export function isConsoleExpression(node: Node) {
&& (node.callee as any).object.type === 'Identifier'
&& (node.callee as any).object.name === 'console'
&& (node.callee as any).property.type === 'Identifier'
&& ['log', 'warn', 'error', 'info', 'debug'].includes((node.callee as any).property.name)
&& node.arguments?.length > 0
}

Expand Down

0 comments on commit 907b36d

Please sign in to comment.