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 <[email protected]>: > I don't understand: > > ```js > > var z=1; var fn = (z = z) => z; fn() // throws ReferenceError: z is not > defined > ``` > >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

