Closed Bug 925112 Opened 12 years ago Closed 11 years ago

Auto indenting problem in Scratchpad with arrow function

Categories

(DevTools Graveyard :: Scratchpad, defect)

27 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: daniel.nr01, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0 (Beta/Release) Build ID: 20131009055629 Steps to reproduce: * Open Scratchpad. * Paste in the following code: let f = () => { console.log('arrow'); }; * Place cursor after the last semicolon. * Press enter to make a new line Actual results: The cursor is indented to align with the first curly brace. Expected results: In this case it should have aligned with "let". Note: if the code is changed to "let f = function () { console.log('arrow'); };" it works as expected. Also "var f = () => { return 1; };" causes no weird auto indentation.
Status: UNCONFIRMED → NEW
Component: Untriaged → Developer Tools: Scratchpad
Ever confirmed: true
OS: Windows 7 → All
Hardware: x86_64 → All
It seems to work on the latest Firefox Nightly. Feel free to reopen if you see otherwise.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.