Open Bug 971936 Opened 11 years ago Updated 1 year ago

Error stack string should align function names

Categories

(Core :: JavaScript Engine, enhancement, P3)

25 Branch
x86
macOS
enhancement

Tracking

()

People

(Reporter: fitzgen, Unassigned)

References

(Blocks 1 open bug)

Details

STR: Open the devtools console and run this snippet: > function a() { bb() } > function bb() { ccc() } > function ccc() { d(); } > function d() { console.log(Error().stack) } > a() Expected: d @debugger eval code:4 ccc@debugger eval code:3 bb @debugger eval code:2 a @debugger eval code:1 @debugger eval code:5 Actual: d@debugger eval code:4 ccc@debugger eval code:3 bb@debugger eval code:2 a@debugger eval code:1 @debugger eval code:5 --------------------------------------------- It would be a lot easier to visually parse out both the function display names and the sources if we aligned each stack frame on the "@" symbol.
Severity: normal → S3
Blocks: sm-runtime
Severity: S3 → N/A
Type: defect → enhancement
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.