Implementation limits for `configureAll`

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
wasm
領域
compilers

調査の方向性

まず configureAll メソッドと、構造体フィールドに対する既存の実装上の制限を確認します。プロトタイプおよびコンストラクターごとのプロパティとメソッドについて相互運用可能な上限を決定し、その上限を超える値に対する動作を定義します。上限と、メソッドをインストールする前に configureAll が例外をスローする箇所が一貫して定義されていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

The configureAll method allows creating JS objects with a potentially large amount of fields.

Similarly to how we have implementation limits for the number of fields in a structure, it probably makes sense to limit the number of properties / methods we allow to setup using configureAll in a JS object.
JS implementations surely have internal limits on object sizes (V8 definitely does), so they will eventually crash or throw if the number of properties is excessively large. To ensure consistency and interoperability between implementations, it's probably useful to have such a limit be spec'ed, similar to other Wasm limits, a value of 10K or 100K properties per prototype and constructor might work.

A value higher than the limit should throw before any method is installed on the "current" prototype / constructor object in the configureAll configuration data (so semantically at the point where the vector size in the configuration data is located).

主要言語
WebAssembly
スター
13
フォーク
3
平均マージ
3日 3時間
マージ済み PR(30日)
17

環境構築

はじめの一歩

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

WebAssembly/custom-descriptors のほかの issue

WebAssembly/custom-descriptors の issue をすべて見る

似ている issue

Compilers の issue をもっと見る

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

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