Document ArrayBuffer limitation in Node.js 4
novemberborn opened this issue · comments
Mark Wubben commented
The following throws a TypeError
in Node.js 4:
const realm = vm.runInNewContext('(function () { return this })()')
Buffer.from(new realm.ArrayBuffer(8))
This means TypedArray
/ ArrayBuffer
/ DataView
comparisons won't work across realms in that version. There is no efficient workaround, and it's a bit of an edge-case, so this should just be documented.