-
-
Notifications
You must be signed in to change notification settings - Fork 35.9k
stream: add writableAborted #40802
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: add writableAborted #40802
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| 'use strict'; | ||
|
|
||
| const assert = require('assert'); | ||
| const { Writable } = require('stream'); | ||
|
|
||
| { | ||
| const writable = new Writable({ | ||
| write() { | ||
| } | ||
| }); | ||
| assert.strictEqual(writable.writableAborted, false); | ||
| writable.destroy(); | ||
| assert.strictEqual(writable.writableAborted, true); | ||
| } | ||
|
|
||
| { | ||
| const writable = new writable({ | ||
| read() { | ||
| } | ||
| }); | ||
| assert.strictEqual(writable.writableAborted, false); | ||
| writable.end(); | ||
| writable.destroy() | ||
| assert.strictEqual(writable.writableAborted, true); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This test also emits
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That shouldn't emit finish... sounds like a bug |
||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.