Open
Bug 1774360
Opened 2 years ago
Updated 2 years ago
Editor pretty print result is incorrect with Records
Categories
(DevTools :: Console, defect, P3)
DevTools
Console
Tracking
(Not tracked)
NEW
People
(Reporter: nchevobbe, Unassigned)
References
(Blocks 1 open bug)
Details
Steps to reproduce
- Open the console, switch to editor mode
- Paste the following in the input
#{
hello: "world"
}
- Click the pretty print (
{}
) button in the editor toolbox
Actual results
The expression is transformed into
# {
hello: "world"
}
Notice the space between #
and {
: evaluating this would lead to a SyntaxError
This will require jsbeautify
to be updated (see https://searchfox.org/mozilla-central/source/devtools/shared/jsbeautify/UPGRADING.md)
We should check if there's an issue on the jsbeautify
and if not, file it
Updated•2 years ago
|
Severity: -- → S3
Priority: -- → P3
Reporter | ||
Comment 1•2 years ago
|
||
jsbeautify issue https://github.com/beautify-web/js-beautify/issues/2062
You need to log in
before you can comment on or make changes to this bug.
Description
•