Skip to content

fix: mangle JS reserved words in generated function stubs - #24

Merged
markwpearce merged 2 commits into
v1from
fix/23-reserved-word-names
Oct 10, 2026
Merged

markwpearce merged 2 commits into
v1from
fix/23-reserved-word-names

Conversation

@markwpearce

Copy link
Copy Markdown
Owner

Fixes #23

Params and plain functions named with a JS reserved word (var, default, delete...) get a _ prefix in the generated stub only. @param tags keep the real name, and functions get a @name tag so they still show up as delete, Utils.var, etc. Class/interface members didn't need it.

🤖 Generated with Claude Code

markwpearce and others added 2 commits October 9, 2026 10:05
Params and plain functions named var/default/delete etc. get a `_` prefix in
the stub only, so jsdoc can parse the file. @PARAM tags keep the real name,
and functions get a @name tag.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
…docs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@markwpearce
markwpearce merged commit 936b28f into v1 Oct 10, 2026
2 checks passed
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