Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.3k
stream: fix writableStream.abort()#44327
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
stream: fix writableStream.abort()#44327
Uh oh!
There was an error while loading. Please reload this page.
Conversation
This includes: - Fixing `writableStream.abort(reason)`. Passing the reason was missing. - Leaving a TODO to remove the internal abortReason property of WritableStreamDefaultController. Signed-off-by: Daeyeon Jeong [email protected]
daeyeon commented Aug 21, 2022
/cc @nodejs/whatwg-stream |
mscdex commented Aug 21, 2022
I think this should add a test that checks that |
daeyeon commented Aug 21, 2022
There is a test and this fix will get it passed. node/test/fixtures/wpt/streams/writable-streams/aborting.any.js Lines 1380 to 1391 in a99fa50
|
mscdex commented Aug 22, 2022 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Why is the main branch passing all tests currently then? |
RaisinTen commented Aug 22, 2022
I think that's because the test was expected to fail previously on main node/test/wpt/status/streams.json Lines 110 to 114 in e5fb452
|
daeyeon commented Aug 22, 2022
Understand the query. Unlike other Node.js APIs, developing Web compatible APIs is allowed to use preparing tests first and developing later approach (TDD) if there are Web Platform Tests we can rely on for basic compatibility testing. When running WPT, our WPT harness refers to a JSON status file describing tests we don't support yet. And it ignores a test result if a certain test is marked as expected to fail. This updates |
mcollina left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
joyeecheung commented Aug 29, 2022
Please do not use resume to re-run the tests - a proper rebase from the CI is necessary to include #44359 |
daeyeon commented Aug 29, 2022
Thanks for the information. I mistook that the resume build also includes the rebase process. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
nodejs-github-bot commented Sep 3, 2022
nodejs-github-bot commented Sep 5, 2022
Landed in 4af0a26 |
This includes: - Fixing `writableStream.abort(reason)`. Passing the reason was missing. - Leaving a TODO to remove the internal abortReason property of WritableStreamDefaultController. Signed-off-by: Daeyeon Jeong [email protected] PR-URL: nodejs#44327 Refs: https://streams.spec.whatwg.org/#writable-stream-abort Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
This includes: - Fixing `writableStream.abort(reason)`. Passing the reason was missing. - Leaving a TODO to remove the internal abortReason property of WritableStreamDefaultController. Signed-off-by: Daeyeon Jeong [email protected] PR-URL: #44327 Refs: https://streams.spec.whatwg.org/#writable-stream-abort Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
This includes: - Fixing `writableStream.abort(reason)`. Passing the reason was missing. - Leaving a TODO to remove the internal abortReason property of WritableStreamDefaultController. Signed-off-by: Daeyeon Jeong [email protected] PR-URL: #44327 Refs: https://streams.spec.whatwg.org/#writable-stream-abort Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
juanarbol commented Oct 3, 2022
This is not landing cleanly in the v16.x release line; would yo mind rebasing to v16.x? |
daeyeon commented Oct 3, 2022 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
This includes:
writableStream.abort(reason). Passing thereasonwas missing.abortReasonproperty ofWritableStreamDefaultControllerin a follow-up.Refs: https://streams.spec.whatwg.org/#writable-stream-abort
Signed-off-by: Daeyeon Jeong [email protected]