Web platform integration

Open
#43 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript

Research direction

Start by reviewing the linked WebIDL SetValueInBuffer and get-buffer-source-copy definitions, then identify the consuming web specifications that use them. Write the requested WPT tests and update those specifications to address immutable buffers and the avoidable defensive copy; use the linked Matrix discussion for context.

Written by the indexing model from the issue text.

Description

There are various web specs which use SetValueInBuffer directly (via WebIDL). These need to be updated and WPT tests written.

Also, there are specs which do a defensive copy of the bytes in a view which can be avoided when the buffer is immutable. This technically is an as-if optimization, but it's probably worth updating the WebIDL and consuming specs to call this out anyway because otherwise people will not know to make this optimization.

See discussion in Matrix.

Dominant language
JavaScript
Stars
38
Forks
7
PR merge metrics
No merged PRs in 30d

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.

More from tc39/proposal-immutable-arraybuffer

All issues in tc39/proposal-immutable-arraybuffer

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.