Skip to content
Standard text for CompressionStream and DecompressionStream API
HTML Makefile
Branch: master
Clone or download
jeremyroman and ricea In example code, simply return the promise from Response.blob. (#23)
It's unnecessary to await a promise returned from an async function
(except if, as not needed here, the exception is to be caught in this
function instead of by a caller).

It's slightly verbose and advised against:
https://github.com/eslint/eslint/blob/master/docs/rules/no-return-await.md
https://jakearchibald.com/2017/await-vs-return-vs-return-await/

Since this is the only use of await, this function is not actually
async. Finally, it should be named with the same casing convention as
the previous example.
Latest commit 62d660d Dec 6, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.pr-preview.json
CODE_OF_CONDUCT.md Adding baseline CODE_OF_CONDUCT.md May 29, 2019
CONTRIBUTING.md
LICENSE.md
Makefile
README.md
explainer.md
index.bs
index.html
w3c.json Adding baseline w3c.json Nov 15, 2019

README.md

Compression Streams Specification

This repository is the home of the Compression Streams Specification, which defines the APIs CompressionStream and DecompressionStream.

See the text of the specification or read the explainer to find out what this is all about.

You can’t perform that action at this time.