It's rather a name clashing I guess, the error message was just confusing

since this works fine:
```js
var Z=1; var fn = (z = Z) => z; fn() // 1
```

2018-04-05 10:29 GMT+02:00 Cyril Auburtin <cyril.aubur...@gmail.com>:

> I don't understand:
>
> ```js
>
> var z=1; var fn = (z = z) => z; fn() // throws ReferenceError: z is not
> defined
> ```
>
>
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to