Closed dsmith73 closed 2 years ago
Hey! Thank you for pointing that out! It seemed to work on the non-minified build, but did not work for the minified build.
This was because .toString
outputs the function written as is, and with the minified build having a minified code, the nn.toFunction
tried parsing a function like a normal function declaration.
I changed how the library converts pre-es6 functions to es6 ones. It looks like it's fixed now. I ran your code in the browser with chrome and it produced an output!
As of v2.4.1c
the issue should be resolved
Bug description
the console.log provides a function with malformed arrow statements
To Reproduce
Expected behavior
Generate a usable function
Actual behavior
Logging produces the following statements:
Platform