Closed Bug 952864 Opened 11 years ago Closed 11 years ago

Scratchpad Pretty Print breaks escaped quotation marks.

Categories

(DevTools Graveyard :: Scratchpad, defect)

x86_64
Windows Vista
defect
Not set
normal

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
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
This should have been fixed in bug 956567. Are you using the most up to date nightly?
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
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.