Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Alternatives to `preferNullPrototype`

オープン
#24 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
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:

  1. nullPrototype was passed over because it is only the non-Array Objects that get null prototypes; Arrays do not.
  2. nullPrototypeForObjects or 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
平均マージ
17時間 35分
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tc39/proposal-json-parseimmutable のほかの issue

tc39/proposal-json-parseimmutable の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。