Skip to content

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

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

UlisesGascon merged 2 commits into
expressjs:masterfrom
jonchurch:2x-strict-mode-error

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants