w3c / w3c/FileAPI

Consider substituting optional BlobPart or sequence<BlobPart> for optional sequence<BlobPart> blobParts at constructor

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

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

主要言語
HTML
スター
118
フォーク
52
平均マージ
9日 16時間
マージ済み PR(30日)
1

説明

Per https://github.com/heycam/webidl/issues/868#issuecomment-609460584

In theory, the type of the argument could have been (BlobPart or sequence) and due to the algorithm for coercing a union type, a lone TypedArray would then end up recognized as a BlobPart rather than a sequence, I believe. That is probably what you were hoping for / would have found more intuitive.

BlobPart or sequence<BlobPart> could allow

new Blob(TypedArray)

to not be converted to a string.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

Blob コンストラクターの定義から始め、union 型の coercion に関するリンク先の Web IDL issue のコメントを読みます。現在の省略可能な sequence blobParts パラメーターと、提案されている BlobPart または sequence という形式を比較し、その変更を採用すべきかどうか、またその結果 TypedArray にどのような新しい動作が生じるかを記録します。

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

評価

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

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

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