Skip to content

fix: Parse numeric descriptor defaults by field type - #2406

Merged
dcodeIO merged 1 commit into
masterfrom
patch/descriptor-defaults
Jul 29, 2026
Merged

dcodeIO merged 1 commit into
masterfrom
patch/descriptor-defaults

Conversation

@dcodeIO

@dcodeIO dcodeIO commented Jul 28, 2026

Copy link
Copy Markdown
Member

Correctly parses numeric defaults imported from protoc descriptors, including exponent notation, special floating-point values, negative numbers, and exact 64-bit integers. For example, protoc may canonicalize 9e9 as 8.999999488e+09, which was subsequently truncated to 8 by parseInt.

@dcodeIO
dcodeIO merged commit 09f24ec into master Jul 29, 2026
5 checks passed
@github-actions github-actions Bot mentioned this pull request Jul 29, 2026
zeekay pushed a commit to hanzoai/protobuf.js that referenced this pull request Sep 9, 2026
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.

2 participants