Closed
Bug 964706
Opened 10 years ago
Closed 10 years ago
[prettify] Pretty printer can't handle getter and setter syntax
Categories
(DevTools :: Debugger, defect)
DevTools
Debugger
Tracking
(Not tracked)
VERIFIED
FIXED
Firefox 30
People
(Reporter: vporof, Assigned: fitzgen)
Details
Attachments
(1 file)
5.66 KB,
patch
|
bbenvie
:
review+
|
Details | Diff | Splinter Review |
var foo = { get bar() { } set bar(value) { } }; Pretty print this in scratchpad: var foo = { getbar() { } setbar(value) { } }; :(
Reporter | ||
Comment 1•10 years ago
|
||
I think it might be a good idea to disable automatically pretty printing "things that look minified" until these errors are sorted out.
Comment 2•10 years ago
|
||
(In reply to Victor Porof [:vp] from comment #1) > I think it might be a good idea to disable automatically pretty printing > "things that look minified" until these errors are sorted out. +1 on that. There are more than 4 different known issues right now ..
Assignee | ||
Comment 3•10 years ago
|
||
(In reply to Victor Porof [:vp] from comment #1) > I think it might be a good idea to disable automatically pretty printing > "things that look minified" until these errors are sorted out. All of them except this one are ES6 only, which isn't an issue since ES6 isn't finalized or used in the web at large, so they only affect chrome code.
Summary: Pretty printer can't handle getters and setters → [prettify] Pretty printer can't handle getter and setter syntax
Assignee | ||
Comment 4•10 years ago
|
||
And the string escaping, I guess.
Assignee | ||
Comment 5•10 years ago
|
||
PR on Github: https://github.com/mozilla/pretty-fast/pull/4/files Try push: https://tbpl.mozilla.org/?tree=Try&rev=3692e5f142db
Attachment #8376621 -
Flags: review?(bbenvie)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → nfitzgerald
Assignee | ||
Updated•10 years ago
|
Status: NEW → ASSIGNED
Comment 6•10 years ago
|
||
Comment on attachment 8376621 [details] [diff] [review] getter-setter.patch Review of attachment 8376621 [details] [diff] [review]: ----------------------------------------------------------------- LGTM
Attachment #8376621 -
Flags: review?(bbenvie) → review+
Assignee | ||
Comment 7•10 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/a2692ca4f8da
Whiteboard: [fixed-in-fx-team]
Comment 8•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/a2692ca4f8da
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 30
Updated•10 years ago
|
Status: RESOLVED → VERIFIED
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•