Skip to content

Commit

Permalink
Update packages/eslint-plugin/lib/tools.js
Browse files Browse the repository at this point in the history
Co-authored-by: Michael FIG <[email protected]>
  • Loading branch information
iomekam and michaelfig authored Jan 15, 2025
1 parent b732653 commit ebcfe14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/eslint-plugin/lib/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const makeAwaitAllowedVisitor = (
addToCache = undefined,
) => {
const already = addToCache ? new WeakSet() : undefined;
// Do not harden() because ESLint 9 relies on mutating the visitor.
return {
/**
* An `await` expression is treated as non-nested if it is:
Expand Down

0 comments on commit ebcfe14

Please sign in to comment.