Closed
Bug 975464
Opened 12 years ago
Closed 12 years ago
Scratchpad [ Pretty Print ] doesn't handle escaped backslashes
Categories
(DevTools Graveyard :: Scratchpad, defect, P3)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 956567
People
(Reporter: anaran, Unassigned)
Details
Attachments
(1 file)
|
812 bytes,
application/x-javascript
|
Details |
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:30.0) Gecko/20100101 Firefox/30.0 (Beta/Release)
Build ID: 20140220030202
Steps to reproduce:
See attached testcase and follow comments and console.log messages.
Actual results:
Strings get corrupted, Exception: unterminated string literal on \' and \r.
Expected results:
None of this.
Pretty print should leave pretty backslashes in strings pretty alone.
| Reporter | ||
Comment 1•12 years ago
|
||
Updated•12 years ago
|
Component: Untriaged → Developer Tools: Scratchpad
Comment 2•12 years ago
|
||
Minimal example:
> '\\r'
pretty prints to:
> '\r'
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Scratchpad [ Pretty Print ] removes backslashes from strings, corrupts, breaks syntax → Scratchpad [ Pretty Print ] doesn't handle escaped backslashes
Updated•12 years ago
|
Priority: -- → P3
Updated•12 years ago
|
OS: Windows XP → All
Hardware: x86 → All
| Reporter | ||
Comment 3•12 years ago
|
||
This seems to be fixed in
navigator.userAgent
"Mozilla/5.0 (Windows NT 5.1; rv:32.0) Gecko/20100101 Firefox/32.0"
navigator.buildID
"20140429030201"
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Updated•8 years ago
|
Product: Firefox → DevTools
Updated•6 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•