Open Bug 938627 Opened 11 years ago Updated 4 months ago

GetPCCountJSON text line numbers do not always match opcode line numbers

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: dminor, Unassigned)

References

(Blocks 1 open bug)

Details

The text field in the JSON string created by GetPCCountJSON is created by calling JS_DecompileScript which in some circumstances will insert "use strict" into the text. If this text is then split into lines, the line numbers will not correspond with the line numbers in the opcodes.

I can work around this, but it would be more convienent if they did match. I could remove "use strict" from the text in this case or add an offset to the opcode line numbers. I'd be happy to put together a patch, but was wondering if there was a preferred way of handling this.
Severity: normal → S3

Hmm. If we could reproduce this still, it would definitely be worth fixing.

Blocks: sm-runtime
Severity: S3 → N/A
Priority: -- → P3
Type: defect → enhancement
You need to log in before you can comment on or make changes to this bug.