codesandbox / codesandbox/codesandbox-client
The nullish coalescing operator doesn't work in a vanilla JavaScript sandbox
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 13.6k
- Forks
- 2.4k
- Avg merge
- 6d 19h
- Merged PRs (30d)
- 2
Description
🐛 bug report
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project
adheres to. - I have searched the issue tracker for an issue that matches the one I want
to file, without success.
Description of the problem
Nullish coalescing operator doesn't works in JS vanilla sandbox
How has this issue affected you? What are you trying to accomplish?
I tried to count letters ;p
To Reproduce
https://codesandbox.io/s/holy-framework-dfwmlh?file=/src/index.mjs
Your Environment
| Software | Name/Version |
|---|---|
| Сodesandbox | Client(?), not cloud |
| Browser | Chrome Version 118.0.5993.90 (Official Build) (64-bit) |
| Operating System | Windows 10 Pro Build 19045.3570 Windows Feature Experience Pack 1000.19052.1000.0 |
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 the linked CodeSandbox reproduction and its src/index.mjs entry point, then trace how the vanilla JavaScript sandbox parses and runs the nullish coalescing operator. Done means the reproduction executes the operator correctly in the stated browser environment, with a regression test if the relevant test location can be identified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100