w3c / w3c/webcodecs

Throw TypeError for detached input BufferSource

Open
#484 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

need-definition
Dominant language
HTML
Stars
1.3k
Forks
194
Avg merge
1d 13h
Merged PRs (30d)
3

Description

The spec has a number of BufferSource members in dictionaries like VideoDecoderConfig, EncodedAudioChunkInit, ... . Presently the spec steps just operate with those members without checking whether they are detached. We check to see if they're detached and, if so, throw a TypeError.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the specification steps for BufferSource members in dictionaries such as VideoDecoderConfig and EncodedAudioChunkInit. Identify each place where those members are operated on without a detached check. Done means the relevant steps check for detached sources and throw a TypeError when appropriate.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.