Files
postcss/lib
Alexander KireyevandGitHub 64117f22bc Fix Input#origin() mixing null and undefined for unmapped end position (#2106)
When the requested end position has no mapping in the source map,
originalPositionFor() returns an object with line/column set to null
rather than omitting them. endLine picked that null up correctly, but
endColumn was computed as `to && to.column + 1`, which due to operator
precedence is `to && (to.column + 1)`, turning null into 1. So callers
could get back { endColumn: 1, endLine: null }, which doesn't match
how every other unmapped case in this function behaves (undefined for
both). Looks like the +1 fix in #2036 covered the mapped case but not
this one.

Guard `to` the same way `from` already is, so an unmapped end position
just stays undefined.
2026-06-30 23:14:26 +02:00
..
2026-04-07 16:07:54 +00:00
2021-03-11 19:11:37 -05:00
2026-04-07 16:07:54 +00:00
2021-03-11 19:11:37 -05:00
2026-04-07 16:07:54 +00:00
2025-02-19 13:43:47 +00:00
2026-04-07 16:07:54 +00:00
2024-08-31 20:59:37 +00:00
2026-04-07 16:07:54 +00:00
2025-02-19 13:43:47 +00:00
2026-04-07 16:07:54 +00:00
2026-04-07 16:04:25 +00:00
2026-04-07 16:07:54 +00:00
2026-04-07 16:07:54 +00:00
2026-04-30 20:16:14 +00:00
2026-04-07 16:04:25 +00:00
2023-07-06 13:38:48 +02:00
2026-04-07 16:07:54 +00:00
2026-04-07 16:04:25 +00:00
2026-04-07 16:07:54 +00:00
2026-04-07 16:04:25 +00:00
2024-08-31 23:26:27 +02:00
2026-04-07 16:07:54 +00:00
2026-04-26 13:44:05 +00:00
2024-08-31 23:26:27 +02:00
2021-11-16 16:43:49 +01:00
2026-04-07 16:07:54 +00:00
2026-04-26 14:17:46 +00:00
2026-04-07 16:07:54 +00:00
2026-06-28 14:56:11 +00:00
2026-04-07 16:07:54 +00:00
2026-04-07 16:07:54 +00:00
2023-07-06 13:38:48 +02:00
2026-04-07 16:07:54 +00:00
2025-02-19 13:43:47 +00:00
2026-04-07 16:07:54 +00:00
2026-04-07 16:04:25 +00:00
2021-03-11 19:11:37 -05:00
2026-04-07 16:07:54 +00:00
2023-07-06 13:38:48 +02:00