Skip to content

Commit

Permalink
Mark Parser constructor as protected so plugins can extend it
Browse files Browse the repository at this point in the history
FIX: Mark the `Parser` constructor as protected, not private,
so plugins can extend it without type errors.

Closes #1282
  • Loading branch information
marijnh committed Mar 8, 2024
1 parent a3456a8 commit bd0aa5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acorn/src/acorn.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ export class Parser {
options: Options
input: string

private constructor(options: Options, input: string, startPos?: number)
protected constructor(options: Options, input: string, startPos?: number)
parse(): Program

static parse(input: string, options: Options): Program
Expand Down

0 comments on commit bd0aa5c

Please sign in to comment.