Where did the code come from?
From trying to shrink js code.
Your code snippet does not produce an error, that made me stumble over this and thinking there is a special implementation of arrow functions.
copy & paste WebIDE left side:
>var _b, b = () => {_b = this;}; =function (undefined) { ... } >new b() =b: { } >
@MaBe started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
From trying to shrink js code.
Your code snippet does not produce an error, that made me stumble over this and thinking there is a special implementation of arrow functions.
copy & paste WebIDE left side: