Hey,
Relatd to swc-project/swc#2650
I'd like to refine swc error handling and throw a SyntaxError instead of an Error.
I see here that some global JS errors are supported, but not SyntaxErrorr.
Any objections to support it?
If you're fine with adding it, I can contribute.
EDIT: I see napi doesn't have an API for that :( Any suggestions?
Hey,
Relatd to swc-project/swc#2650
I'd like to refine swc error handling and throw a
SyntaxErrorinstead of anError.I see here that some global JS errors are supported, but not
SyntaxErrorr.Any objections to support it?
If you're fine with adding it, I can contribute.
EDIT: I see
napidoesn't have an API for that :( Any suggestions?