Skip to content

fix: both %i and %d should parse floats to int according to Formatter docs

Fixes #48238

According to the docs at https://console.spec.whatwg.org/#formatter, both %d and %i should parse to an integer.

Matched the parsing method of %d to the same as %i, and corrected tests with improper assertions given this information.

Merge request reports

Loading