Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions apps/oxlint/src-js/plugins/source_code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ export function resetSourceAndAst(): void {
// Only one file is linted at a time, so we can reuse a single object for all files.
//
// This has advantages:
// 1. Property accesses don't need to go up prototype chain, as they would for instances of a class.
// 2. No need for private properties, which are somewhat expensive to access - use top-level variables instead.
// 1. Reduce object creation.
// 2. Property accesses don't need to go up prototype chain, as they would for instances of a class.
// 3. No need for private properties, which are somewhat expensive to access - use top-level variables instead.
//
// Freeze the object to prevent user mutating it.

Expand Down
Loading