Closed davidmarkclements closed 3 years ago
@davidmarkclements thanks, nice to finally meet :) Just ran a quick test of this by pasting the source into the unit test file and running a parse. I needed to escape the backslashes and multiline comments to get it to parse correctly but that is standard literal string conversion. So it's defiitely working for me. Make sure you're passing a string and handling escaping correctly.
If you're still not able to get it to work, post a PR with a replication in test/_unit.cjs
and I'll take another look.
hey thanks for checking this, this was totally my fault (trying to lex a chunk of a stream without realising it). Sorry for the time drain!
great to meet you too, would love to meet in person at some point
hey there, great work!
when attempting to parse https://github.com/pinojs/pino/blob/master/lib/tools.js the following error occurs:
If there's a way I can give you more info than this let me know
I realise it's a CJS file, but I'm parsing any file that may contain a dynamic import (which includes CJS files)