Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WritableStream Example #532

Open
wants to merge 14 commits into
base: gh-pages
Choose a base branch
from
Open

Conversation

jpmedley
Copy link
Contributor

@jpmedley jpmedley commented Aug 7, 2017

I don't know if this is good enough for our samples, I'm going to try. At least I'll learn better coding.

@jpmedley jpmedley requested a review from petele August 15, 2017 16:12
@jpmedley
Copy link
Contributor Author

I actually do need a review because I need code examples for MDN. I tried to add Jake as the reviewer, but he isn't in the assignees list for some reason.

@beaufortfrancois
Copy link
Member

@jakearchibald Do you mind having a look at this sample?

@beaufortfrancois beaufortfrancois force-pushed the gh-pages branch 7 times, most recently from c198a70 to 03c4155 Compare November 26, 2022 06:50
@beaufortfrancois beaufortfrancois force-pushed the gh-pages branch 5 times, most recently from 1de1b35 to c4f3954 Compare October 16, 2023 10:28
Copy link
Collaborator

@markafoltz markafoltz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, if I don't hear from you I'll merge with suggestions applied.

let buffer = new ArrayBuffer(2);
let view = new Uint16Array(buffer);
view[0] = chunk;
let decoded = decoder.decode(view, {stream: true});
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can these variables be const?

@@ -0,0 +1,8 @@
<!-- TODO: Replace PLACEHOLDER with feature name. -->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove these TODOs?

Suggested change
<!-- TODO: Replace PLACEHOLDER with feature name. -->

<!-- TODO: Replace PLACEHOLDER with feature name. -->
Stream Samples
===
<!-- TODO: Replace PLACEHOLDER in the path to correspond to the real github.io URL. -->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<!-- TODO: Replace PLACEHOLDER in the path to correspond to the real github.io URL. -->

<!-- TODO: Replace PLACEHOLDER in the path to correspond to the real github.io URL. -->
See https://googlechrome.github.io/samples/streams/index.html for a live demo.

<!-- TODO: Replace PLACEHOLDER with the id from the chromestatus.com URL. -->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<!-- TODO: Replace PLACEHOLDER with the id from the chromestatus.com URL. -->

Comment on lines +11 to +14
let buffer = new ArrayBuffer(2);
let view = new Uint16Array(buffer);
view[0] = chunk;
let decoded = decoder.decode(view, {stream: true});
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let buffer = new ArrayBuffer(2);
let view = new Uint16Array(buffer);
view[0] = chunk;
let decoded = decoder.decode(view, {stream: true});
const buffer = new ArrayBuffer(2);
const view = new Uint16Array(buffer);
view[0] = chunk;
const decoded = decoder.decode(view, {stream: true});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants