I have a custom buffer-like object whose contents are handed by an ArrayBuffer:
Local<ArrayBuffer> buf = obj.As<Uint8Array>()->Buffer();
*data = static_cast<char *>(buf->GetContents().Data());
I also have a js file that uses it, with lines like:
String(data.length)
JSON.stringify(data)
This is called over a few hundred objects.
After upgrading from v8 version 5.4ish to 6.0.186, it seems that for a handful of objects, obj.length is 1-2 smaller than before, and the output of JSON.stringify(obj) is also shorter by that amount (the missing bytes come from anywhere in the buffer).
Based on what's happening, I think some change in Uint8Array, ArrayBuffer, or possibly JSON::Stringify could be related, but I haven't had any luck so far trying to figure it out. Anyone able to point me in the right direction? Thanks in advance!