Alternatives to `preferNullPrototype`
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 活跃
- 技术栈
- javascript
调研方向
Start with issue #24 and compare the proposed names against its stated constraints around Arrays, Objects, JSON import attributes, and allowed values. Done means the naming and scope question has a decided direction; no file or test entry point is mentioned in the payload.
由索引模型根据 Issue 内容生成。
描述
preferNullPrototype is the current key name for the following reasons:
nullPrototypewas passed over because it is only the non-Array Objects that get null prototypes; Arrays do not.nullPrototypeForObjectsor similar was passed over because Arrays technically are Objects so this still has the same problem as (1)
While advancing this proposal to Stage 2.7, I think the committee was split on (1) but generally agreed that (2) is a bit too pedantic. So we are reconsidering names that somehow mention Object -- we heard the following in committee:
nullPrototypeObjects: boolean
nullObjectPrototype: boolean
We also heard the following:
objectPrototype: null | ???
This option opens the door do doing things like objectPrototype: MyThing.prototype where MyThing is some user-defined class. This would not be possible in import attributes, assuming we add this key to JSON import attributes. It also would expand the scope of this proposal considerably. So assuming we are not going to do that, null and undefined (which would lead to the default Object.prototype) would be the only permissible values for objectPrototype.
I think my current weak preference is for nullPrototypeObjects.
- 主要语言
- HTML
- 星标
- 52
- 派生
- 4
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
tc39/proposal-json-parseimmutable 的其他 Issue
-
难度 5/5 一周以上 新手友好度 35/100
tc39/proposal-json-parseimmutable#25 · 5 条评论 · 2 个 reaction ·
查看 tc39/proposal-json-parseimmutable 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
aristocratos/btop#1945 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 79/100
boykopovar/AnyPS5#11291 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
stac-utils/stac-fastapi-elasticsearch-opensearch#965 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 71/100
Automattic/blocks-engine#3438 ·
维护者通常 1 天内回复
-
bug help wanted
难度 2/5 1-3 小时 新手友好度 78/100
Tencent/teamai-cli#1397 ·
维护者通常 1 天内回复