structuredClone turns boxed BigInt values into plain objects
オープン
初心者向け
まだ誰も着手していません。
Needs: Author Feedback
Needs: Repro
- 主要言語
- C++
- スター
- 127k
- フォーク
- 25.3k
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 4
説明
Description
The React Native structuredClone polyfill handles boxed Boolean, Number, and String values but omits boxed BigInt. structuredClone(Object(1n)) therefore returns a plain empty object that is not a BigInt wrapper and has no usable primitive value.
Expected behavior
The clone should be a distinct boxed BigInt whose valueOf() matches the input. Native structuredClone follows this behavior.
React Native Version
0.87.1 and current main
Affected Platforms
JavaScript runtime - All
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず React Native の structuredClone polyfill を見つけ、boxed Boolean、Number、String 値がどのように処理されているかを読んでください。structuredClone(Object(1n)) のカバレッジを追加し、結果が入力値と valueOf() が一致する、別個の boxed BigInt であることを検証してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, react-native
- 領域
- mobile
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 70/100