Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #36560 > unrolled thread

Re: "use strict"; in a recent Firefox

Started byJJ <jj4public@vfemail.net>
First post2019-05-03 20:09 +0700
Last post2019-05-04 18:18 +0700
Articles 3 — 2 participants

Back to article view | Back to comp.lang.javascript

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: "use strict"; in a recent Firefox JJ <jj4public@vfemail.net> - 2019-05-03 20:09 +0700
    Re: "use strict"; in a recent Firefox Jake Jarvis <pig_in_shoes@yahoo.com> - 2019-05-03 15:28 +0200
      Re: "use strict"; in a recent Firefox JJ <jj4public@vfemail.net> - 2019-05-04 18:18 +0700

#36560 — Re: "use strict"; in a recent Firefox

FromJJ <jj4public@vfemail.net>
Date2019-05-03 20:09 +0700
SubjectRe: "use strict"; in a recent Firefox
Message-ID<18ndmeg9fnold$.dhcs3f0xlczh.dlg@40tude.net>
On 2 May 2019 19:01:49 GMT, Stefan Ram wrote:
>   I read on a webpage that duplicate keys were detected in
>   strict mode. I cannot see this with a recent Firefox:
> 
>|>> "use strict"; ({ a: 2, a: 3 })
>|<- Object { a: 3 }
> 
>   . Ok, so, the explanation is:
> 
>   Duplicate keys are now legal since ES6, even in strict mode!

I got an "Unexpected token" exception on both Firefox and Chromium.

Which brower and version, or JavaScript interpreter that allow such code?

[toc] | [next] | [standalone]


#36561

FromJake Jarvis <pig_in_shoes@yahoo.com>
Date2019-05-03 15:28 +0200
Message-ID<qahfm1$dga$1@dont-email.me>
In reply to#36560
Am 03.05.2019 um 15:09 schrieb JJ:
> On 2 May 2019 19:01:49 GMT, Stefan Ram wrote:
>>    I read on a webpage that duplicate keys were detected in
>>    strict mode. I cannot see this with a recent Firefox:
>>
>> |>> "use strict"; ({ a: 2, a: 3 })
>> |<- Object { a: 3 }
>>
>>    . Ok, so, the explanation is:
>>
>>    Duplicate keys are now legal since ES6, even in strict mode!
> 
> I got an "Unexpected token" exception on both Firefox and Chromium.
> 
> Which brower and version, or JavaScript interpreter that allow such code?
> 

You have to keep the parentheses

[toc] | [prev] | [next] | [standalone]


#36567

FromJJ <jj4public@vfemail.net>
Date2019-05-04 18:18 +0700
Message-ID<1oh3fo1i98n4y$.t25xvlahm36x.dlg@40tude.net>
In reply to#36561
On Fri, 3 May 2019 15:28:34 +0200, Jake Jarvis wrote:
> 
> You have to keep the parentheses

Oh, darn it my eyes.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web