Yohohohohohooho | Sanrei Aya
Sanrei Aya


Server : LiteSpeed
System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : elvh3918 ( 1528)
PHP Version : 8.2.31
Disable Function : mail
Directory :  /opt/alt/alt-nodejs9/root/lib/node_modules/npm/node_modules/tar/node_modules/minipass/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/alt-nodejs9/root/lib/node_modules/npm/node_modules/tar/node_modules/minipass/e.js
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)
})

Yohohohohohooho | Sanrei Aya