Skip to content

Commit

Permalink
Update test/test-lib/get-scope.mjs
Browse files Browse the repository at this point in the history
Co-authored-by: 唯然 <[email protected]>
  • Loading branch information
ota-meshi and aladdin-add authored Dec 6, 2023
1 parent 2ce7326 commit a7611fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test-lib/get-scope.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export function getScope(context, node) {
const sourceCode = context.getSourceCode()
const sourceCode = context.sourceCode ?? context.getSourceCode()
if (sourceCode.getScope) {
return sourceCode.getScope(node)
}
Expand Down

0 comments on commit a7611fe

Please sign in to comment.