Feature request: Remember Strict context in functions and program
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.1k
- Forks
- 773
- PR merge metrics
- No merged PRs in 30d
Description
The script context is correctly interpreted however once the AST is built, there is no way to track if the program or functions have been parsed in strict mode. Analyzing the Directive in the body is not sufficient as it's inherited recursively during the parsing process.
I have made the changes on esprima.net already.
https://github.com/sebastienros/esprima-dotnet/commit/df52de89cd3c018ed20432e8feee9b8b643d2c7c
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
Review the parser's handling of script context, AST construction, and Directive processing for programs and functions. Compare the behavior with the referenced esprima.net commit, then verify that strict-mode context remains available after parsing rather than relying only on recursively inherited directives.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100