PerformanceObserver accepts invalid callbacks until delivery
まだ誰も着手していません。
- 主要言語
- C++
- スター
- 127k
- フォーク
- 25.3k
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 4
説明
Description
PerformanceObserver stores its constructor argument without validating that one was supplied or that it is callable. Missing, null, and other non-function callbacks therefore create invalid observer instances and fail only later when native delivery attempts to invoke the value.
Expected behavior
Construction without the required argument should throw synchronously, and an explicitly supplied non-function should throw the corresponding callback type error, matching the PerformanceObserver API contract.
React Native Version
0.87.1 and current main
Affected Platforms
New Architecture - All
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
PerformanceObserver のコンストラクターとネイティブの配信経路を追跡し、callback がどこに保存され、後でどこで呼び出されるかを確認します。callback がない場合と、明示的に指定された関数以外の値についてのカバレッジを追加し、構築時に期待されるエラーが同期的にスローされること、および有効な callback が引き続き機能することを検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, react-native
- 領域
- api, mobile-dev
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 55/100