Closed novemberborn closed 5 years ago
The following throws a TypeError in Node.js 4:
TypeError
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.
TypedArray
ArrayBuffer
DataView
The following throws a
TypeError
in Node.js 4: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.