Rene Saarsoo
Rene Saarsoo
Perhaps you could give a small heads up what this `new.target` code is supposed to do. I'm currently away from computer and not really keen to dig into ecmascript spec.
Well... I'll need to take a closer look when I get back. Possibly Lebab could switch to a different parser. I don't really remember why exactly it uses espree. There...
Sure. I'm open for a PR.
So, I finally started looking closer at this issue, and I'm unable to reproduce it. Testing with this snippet: ```js function foo() { new.target } ``` It works just fine...
> Run this in Node.js. Not sure why web is fine. Tried. Works without issues.
This other example also works without issue for me.
Also running in [codesandbox.io](https://codesandbox.io/p/devbox/zen-carson-d7p9ns?file=%2Fsrc%2Findex.js%3A9%2C1)
Yeah, I'm using Mac. Node 18.
Perhaps there's something off with your windows environment. Maybe you can ask somebody to try it on Windows. I currently don't have a Windows at hand.
I'd suspect it's a difference in Node environment, not a difference in OS.