Add a .data pointer on ArrayBuffers for convenience, see #291

This commit is contained in:
dcodeIO
2018-10-03 01:06:48 +02:00
parent b7e7be20cf
commit db0e82fbc3
13 changed files with 89 additions and 31 deletions

View File

@ -7,6 +7,7 @@ assert(buffer.byteLength == 8);
var sliced = buffer.slice();
assert(sliced.byteLength == 8);
assert(sliced.data != buffer.data);
assert(sliced !== buffer);
sliced = buffer.slice(1);