On 23 May 2017 at 17:01, Claude Pache <[email protected]> wrote:

> This is not specific to the divide operator. If you try:
>
> ```js
> x => {} * alert(1)
> ```
>
>
Yeah of course I mentioned divide because it's more interesting because it
can lead to js sandbox escapes.


> you'll get a SyntaxError in all browsers but Edge, which interprets it as
> `(x => {}) * alert(1)`.
>
> Given how confusing that expression is, I think that the SyntaxError is
> the right choice.


 Well it is a function expression. So IMO Edge is right. It's equivalent to:
x=function(){} * alert(1)
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to