Options bag option names
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- javascript
- Domain
- api
Research direction
Start by reading the proposed option names, the current preferences, and the compatibility context from #8. Done means reaching agreement on names for the freeze and null-prototype flags; this issue does not identify files or tests to run.
Written by the indexing model from the issue text.
Description
This proposal will introduce an options bag to JSON.parse with (for now) two flags: One which freezes objects and one which makes plain (non-array) objects have a null prototype. We are committed to flags whose default value is false and where the false behavior aligns with current JSON.parse behavior without a reviver.
What should the option bag property names be? Per #8 it might be helpful for compat if the names are not extremely terse.
My current preferences therefore are
freezeObjects -- something as terse as frozen or freeze increases likelihood of web compat issues. but maybe this is overthinking
nullPrototype -- technically doesn't quite capture the fact that only non-array objects will get a null prototype, but that seems hard to capture without getting ridiculous.
- Dominant language
- HTML
- Stars
- 48
- Forks
- 4
- Avg merge
- 1d 1m
- Merged PRs (30d)
- 5
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.
More from tc39/proposal-json-parseimmutable
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
tc39/proposal-json-parseimmutable#20 · 1 comment ·
-
Spec review comments Open
Difficulty 3/5 1-2 days Newbie friendliness 48/100
tc39/proposal-json-parseimmutable#16 · 3 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
tc39/proposal-json-parseimmutable#14 · 10 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
tc39/proposal-json-parseimmutable#12 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
tc39/proposal-json-parseimmutable#10 · 1 comment ·
All issues in tc39/proposal-json-parseimmutable
Similar issues
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100