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: Dmitry Gutov <dgutov <at> yandex.ru>
To: Stefan Kangas <stefan <at> marxist.se>
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 20:17:16 +0300
On 10.08.2020 18:53, Stefan Kangas wrote:
> In the Firefox web console, I get
> 
> { -2, 2, +2 }  =>  2

Yeah, it seems like it's interpreted like a comma-separated list of 
statements in a block.

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

We generally prioritize supporting code that is likely to actually be 
written by somebody, so IMHO there is no significant bug here.

But if someone would like to propose a patch, we will surely review it.




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.