Closed
Bug 1120871
Opened 11 years ago
Closed 9 years ago
Pretty printing ES6 template strings
Categories
(DevTools Graveyard :: Scratchpad, defect, P3)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 951622
People
(Reporter: krzysztof.glebowicz, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:37.0) Gecko/20100101 Firefox/37.0
Build ID: 20150108030220
Steps to reproduce:
Try to Pretty print the code containing ES6 template string in Scratchpad:
function test(x, y) {
return `x: ${x}, y: ${y}`
}
test(1, 'foo');
Actual results:
/*
Exception: Unexpected character '`' (11:9)
raise@resource://gre/modules/devtools/acorn/acorn.js:231:15
readToken@resource://gre/modules/devtools/acorn/acorn.js:738:7
getToken@resource://gre/modules/devtools/acorn/acorn.js:146:7
prettyFast@resource://gre/modules/devtools/pretty-fast.js:777:15
self.onmessage@resource://gre/modules/devtools/server/actors/pretty-print-worker.js:37:24
*/
Blocks: 938203
Component: Untriaged → Developer Tools: Scratchpad
Updated•11 years ago
|
Comment 2•9 years ago
|
||
Scratchpad's prettyprint needs to support ES6, this is tracked in bug 951622.
Status: NEW → RESOLVED
Closed: 9 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
•