Skip to content

Invalidate compiled parsers after builder mutations - #361

Open
Aschenbath wants to merge 1 commit into
keichi:masterfrom
Aschenbath:fix/oss30-20261124-9130-binary-compiled-mutation
Open

Aschenbath wants to merge 1 commit into
keichi:masterfrom
Aschenbath:fix/oss30-20261124-9130-binary-compiled-mutation

Conversation

@Aschenbath

Copy link
Copy Markdown
Contributor

Appending fields, selecting a constructor, or toggling context after parse() or compile() currently leaves the cached generated function unchanged. Invalidate that cache when the parser builder changes, including alias registration, so the next parse reflects the updated definition. This covers direct mutations of the parser; it does not add dependency tracking for later mutations of shared child parsers.

Validation: added regressions fail on unchanged master. Node suite: 260 passed; Chromium suite: 131 passed, 1 skipped. TypeScript build, full repository formatting check, and type-aware oxlint pass. Tested on Node 24 / Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant