| Server IP : 162.19.112.25 / Your IP : 216.73.217.36 Web Server : LiteSpeed System : Linux qamar.tasjeel.ae 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64 User : archiart ( 1428) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/alt-nodejs9/root/lib/node_modules/npm/node_modules/tar/node_modules/minipass/ |
Upload File : |
const MP = require('stream').PassThrough // require('./')
const mp = new MP()
const wait = (n) => new Promise(resolve => setTimeout(resolve, n))
const t = require('tap')
t.test('end ordering', async t => {
mp.on('end', _ => console.log('end'))
mp.end()
console.log('called end')
// mp.resume()
// console.log('called resume()')
// mp.read()
// console.log('called read')
mp.on('data', _=>_)
console.log('added data handler')
await wait(1)
})