简体   繁体   中英

Node.js streams Object mode reference or copy

Do node.js streams pass objects by reference in ObjectMode ? Unfortunately I can't find any documentation about that.

Looking into node.js source eg stream.Readable shows that the object isn't copied. So it is passed by reference because this is javascripts method to pass objects.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM