我正在尝试使以下代码工作:varstream=require('stream');classMyReadableextendsstream.Readable{constructor(options){super(options);}_read(size){this.push({a:1});}}varx=newMyReadable({objectMode:true});x.pipe(process.stdout);根据Streams由于objectMode选项被设置为true,node.js的文档从此类流中读取非字符串/非Buffer对象应该没有问题。然而我最终得到的是以下错误:Type