Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

refactor(json): simplify strict mode error string construction - #693

#693
Merged
UlisesGascon merged 2 commits into
expressjs:masterexpressjs/body-parser:masterfrom
jonchurch:2x-strict-mode-errorjonchurch/body-parser:2x-strict-mode-errorCopy head branch name to clipboard
Jan 6, 2026
Merged

refactor(json): simplify strict mode error string construction#693
UlisesGascon merged 2 commits into
expressjs:masterexpressjs/body-parser:masterfrom
jonchurch:2x-strict-mode-errorjonchurch/body-parser:2x-strict-mode-errorCopy head branch name to clipboard

Conversation

@jonchurch

Copy link
Copy Markdown
Member

refactor the way we create strict mode error strings

the concat in a loop is the least efficient way across memory and operations to do this, so refactor to approach that uses fewer allocations and operations

@UlisesGascon
UlisesGascon merged commit 8474a98 into expressjs:master Jan 6, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.