Skip to content

Commit 09a0a8f

Browse files
committed
docs(linter/plugins): update comment
1 parent 6876726 commit 09a0a8f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apps/oxlint/src-js/plugins/source_code.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ export function resetSourceAndAst(): void {
9191
// Only one file is linted at a time, so we can reuse a single object for all files.
9292
//
9393
// This has advantages:
94-
// 1. Property accesses don't need to go up prototype chain, as they would for instances of a class.
95-
// 2. No need for private properties, which are somewhat expensive to access - use top-level variables instead.
94+
// 1. Reduce object creation.
95+
// 2. Property accesses don't need to go up prototype chain, as they would for instances of a class.
96+
// 3. No need for private properties, which are somewhat expensive to access - use top-level variables instead.
9697
//
9798
// Freeze the object to prevent user mutating it.
9899

0 commit comments

Comments
 (0)