browserify / browserify/syntax-error

top-level return does not cause ParseError

Open
#4 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
81
Forks
26
PR merge metrics
No merged PRs in 30d

Description

```
> require('syntax-error')('return')
undefined
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue through require('syntax-error')('return') and trace how this entry point handles the top-level return input. Done means the same input produces a ParseError rather than undefined; no specific source file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.