Closed Bug 1120871 Opened 11 years ago Closed 8 years ago

Pretty printing ES6 template strings

Categories

(DevTools Graveyard :: Scratchpad, defect, P3)

37 Branch
defect

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
No longer blocks: 938203
Depends on: 938203
Blocks: 938203
Status: UNCONFIRMED → NEW
No longer depends on: 938203
Ever confirmed: true
OS: Windows XP → All
Hardware: x86 → All
Scratchpad triage, filter on "ghostbusterzzz"
Priority: -- → P3
Scratchpad's prettyprint needs to support ES6, this is tracked in bug 951622.
Status: NEW → RESOLVED
Closed: 8 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.