nodejs / nodejs/amaro

V8 Natives Syntax

Open
#339 5 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.