首页 > node.js Unable to allocate ArrayBuffer

node.js Unable to allocate ArrayBuffer

nodejs中创建arraybuffer失败,我的node版本是0.10.28,以下是代码:
代码只有一行

new ArrayBuffer(0)

这是错误信息:

Error: Unable to allocate ArrayBuffer.
at repl:1:2
at REPLServer.self.eval (repl.js:110:21)
at Interface. (repl.js:239:12)
at Interface.EventEmitter.emit (events.js:95:17)
at Interface._onLine (readline.js:202:10)
at Interface._line (readline.js:531:8)
at Interface._ttyWrite (readline.js:760:14)
at ReadStream.onkeypress (readline.js:99:10)
at ReadStream.EventEmitter.emit (events.js:98:17)
at emitKey (readline.js:1095:12)


代码贴粗来~


代码在哪?代码和报错信息都不全。
实测没有问题。是不是你的nodejs内存已满无法分配了

【热门文章】
【热门文章】