Closed
Bug 952864
Opened 11 years ago
Closed 11 years ago
Scratchpad Pretty Print breaks escaped quotation marks.
Categories
(DevTools Graveyard :: Scratchpad, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 956567
People
(Reporter: TNO, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0 (Beta/Release)
Build ID: 20131216183647
Steps to reproduce:
Open scratchpad, enter the following code:
var turtles = "turtles";
"I like '" + turtles + "' and recursion";
Hit Pretty Print
Actual results:
var turtles = 'turtles';
'I like '' + turtles + '' and recursion';
Expected results:
A possible transformation that does not change the semantics of the program
Comment 1•11 years ago
|
||
This issue occurs on trunk nightly.
Consider this simple code.
. console.log("He said 'I can\'t load a file'");
Before pretty printing, it works
> console.log("He said 'I can\'t load a file'");
After pretty printing, it doesn't run and error is displayed.
> console.log('He said 'I can't load a file'');
/*
Exception: missing ) after argument list
@Scratchpad/3:9
*/
Status: UNCONFIRMED → NEW
Component: Untriaged → Developer Tools: Scratchpad
Ever confirmed: true
Summary: Scratchpad Pretty Print breaks string concatenation → Scratchpad Pretty Print breaks escaped quotation marks.
Version: 27 Branch → Trunk
Comment 2•11 years ago
|
||
This should have been fixed in bug 956567. Are you using the most up to date nightly?
Comment 3•11 years ago
|
||
I get valid output in the latest Nightly:
> console.log('He said \'I can\'t load a file\'');
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•5 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•