dcodeIO/node-memcpy

Node 0.12: Not a valid kExternalUnsignedByteArray

Closed this issue · 3 comments

Hi,
I get a TypeError: Illegal source: Not a valid kExternalUnsignedByteArray error when using node 0.12?

var memcpy = require("memcpy"); 
var ab = new ArrayBuffer(8);
var buffer = new Buffer(ab.byteLength);
memcpy(buffer, ab);

No solution to this?

I haven't found one. I use Buffers now directly so I just replaced the
memcp dependency.

Am 15.04.2015 um 19:10 schrieb Mateo Gianolio
notifications@github.com:

No solution to this?


Reply to this email directly or view it on GitHub.

Currently investigating, but it seems that the version of v8 used in node 0.12 doesn't expose the backing data anymore without externalizing it (which we don't want). There seem to be some workarounds using v8::Utils, but I haven't managed to get it to work, yet, as this is not exposed publicly.

If you have an idea, let me know.