GNU bug report logs - #29798
24.3; Javascript: Too much indentation with + and -

Previous Next

Package: emacs;

Reported by: Gavin Haynes <haynes.gt <at> gmail.com>

Date: Thu, 21 Dec 2017 07:58:02 UTC

Severity: wishlist

Tags: confirmed

Found in versions 28.0.50, 24.3

Full log


View this message in rfc822 format

From: Stefan Kangas <stefan <at> marxist.se>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 29798 <at> debbugs.gnu.org, Gavin Haynes <haynes.gt <at> gmail.com>
Subject: bug#29798: 24.3; Javascript: Too much indentation with + and -
Date: Mon, 10 Aug 2020 17:53:43 +0200
Dmitry Gutov <dgutov <at> yandex.ru> writes:

> > I can reproduce this on current master.  I see the following
> > indentation:
> >
> > {
> > -2,
> >      2,
> >   +2
> > }
>
> I don't think that's valid JavaScript either.

In the Firefox web console, I get

{ -2, 2, +2 }  =>  2

So I guess it's valid, if a bit nonsensical? I must admit that my
knowledge of JavaScript is terrible though.

Best regards,
Stefan Kangas




This bug report was last modified 3 years and 215 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.