FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

refactor(json): simplify strict mode error string construction by jonchurch · Pull Request #692 · expressjs/body-parser · GitHub

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

Merged
UlisesGascon merged 2 commits into
expressjs:1.xfrom
jonchurch:1x-strict-mode-error
Jan 6, 2026
Merged

UlisesGascon merged 2 commits into
expressjs:1.xfrom
jonchurch:1x-strict-mode-error

Conversation

jonchurch commented Jan 5, 2026
edited
Loading

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

Different approach from #693 bc of node version requirements not allowing us to use string.repeat()

UlisesGascon mentioned this pull request Jan 5, 2026
2 tasks
UlisesGascon merged commit 2c55e2f into expressjs:1.x Jan 6, 2026
34 checks passed
jonchurch deleted the 1x-strict-mode-error branch January 8, 2026 18:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL