structuredClone invokes custom Map and Set iterators
まだ誰も着手していません。
- 主要言語
- C++
- スター
- 127k
- フォーク
- 25.3k
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 4
説明
Description
The React Native structuredClone polyfill traverses Map and Set values with for...of. An own Symbol.iterator override is therefore executed and can change the cloned contents or abort cloning, even though structured cloning should read the built-in collection data from internal slots.
Expected behavior
Map and Set cloning should ignore user iterator overrides and clone their real built-in entries, matching native structuredClone.
React Native Version
0.87.1 and current main
Affected Platforms
JavaScript runtime - All
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
React Native の structuredClone polyfill から始めて、Map と Set の値がどのように走査されるかを確認します。独自の Symbol.iterator のオーバーライドを使って問題を再現し、結果を native structuredClone と比較します。完了条件は、クローン処理が組み込みのエントリを使用し、それらのオーバーライドを無視し、JavaScript ランタイム上で期待される動作を維持することです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, react-native
- 領域
- mobile-dev
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 68/100