File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
apps/oxlint/src-js/plugins Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments