add hw2
This commit is contained in:
14
node_modules/thread-stream/test/exit.js
generated
vendored
Normal file
14
node_modules/thread-stream/test/exit.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict'
|
||||
|
||||
const { Writable } = require('stream')
|
||||
|
||||
async function run (opts) {
|
||||
const stream = new Writable({
|
||||
write (chunk, enc, cb) {
|
||||
process.exit(1)
|
||||
}
|
||||
})
|
||||
return stream
|
||||
}
|
||||
|
||||
module.exports = run
|
||||
Reference in New Issue
Block a user