Skip to content

SourceMap JSON Parser fixes - #2567

Merged
gbrail merged 5 commits into
mozilla:masterfrom
0xe:scratch/s/sourcemap-parser-fixes
Nov 11, 2026
Merged

gbrail merged 5 commits into
mozilla:masterfrom
0xe:scratch/s/sourcemap-parser-fixes

Conversation

@0xe

@0xe 0xe commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Minor fixes to the SourceMap JSON parser:

  • Nesting depth should be limited so as to prevent StackOverFlowErrors
  • \u escapes should be limited to 4 digits
  • Numbers in JSON should correspond to the algorithm in ECMA-404, section 8, "Numbers"

Stacked on #2566.

@0xe
0xe force-pushed the scratch/s/sourcemap-parser-fixes branch from 433746c to 78f5b77 Compare November 6, 2026 08:20
@gbrail

gbrail commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

Thanks for this one too!

@gbrail
gbrail merged commit 82ee1dc into mozilla:master Nov 11, 2026
12 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.

3 participants