Open
Bug 938627
Opened 11 years ago
Updated 1 year ago
GetPCCountJSON text line numbers do not always match opcode line numbers
Categories
(Core :: JavaScript Engine, enhancement, P3)
Core
JavaScript Engine
Tracking
()
NEW
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.
Updated•2 years ago
|
Severity: normal → S3
Comment 1•1 year ago
|
||
Hmm. If we could reproduce this still, it would definitely be worth fixing.
Updated•1 year ago
|
Type: defect → enhancement
You need to log in
before you can comment on or make changes to this bug.
Description
•