Open Bug 1552331 Opened 5 years ago Updated 2 years ago

Column breakpoint markers can render in the wrong place on lines containing non-BMP unicode chars

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: loganfsmyth, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Column breakpoint offsets appear to be codeunit-indexed, but column offsets are codepoint-indexed, so they render in the wrong place.

This is probably due to using Codemirror's column offsets, which appear to also be codeunit-indexed. Looks like we'd have to explore fixes to work around that.

Given code like

"😋😋😋😋";console.log("log3");

each smiley is treated as 2 columns wide, so the you get what you see in the attached image.

Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: