V8 Natives Syntax
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 795
- Forks
- 35
- Avg merge
- 7d 12h
- Merged PRs (30d)
- 8
Description
I need to use native syntax for debugging, but amaro (swc) thinks it's invalid syntax.
//@ts-expect-error
%DebugPrint(null);
//@ts-expect-error
%DebugPrint(null);
^
SyntaxError [ERR_INVALID_TYPESCRIPT_SYNTAX]: Expression expected
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with amaro's TypeScript parsing path and the SWC handling of the %DebugPrint(null) example shown in the issue. Confirm the behavior with the provided snippet and identify the relevant parser test location; done means this native V8 syntax no longer produces ERR_INVALID_TYPESCRIPT_SYNTAX.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100