Bump to v4.6.0.

This commit is contained in:
John-David Dalton
2016-02-29 23:41:02 -08:00
parent 9055c4e483
commit 7da4c55415
65 changed files with 413 additions and 235 deletions

View File

@@ -8,11 +8,8 @@ import Uint8Array from './_Uint8Array';
* @returns {ArrayBuffer} Returns the cloned array buffer.
*/
function cloneArrayBuffer(arrayBuffer) {
var Ctor = arrayBuffer.constructor,
result = new Ctor(arrayBuffer.byteLength),
view = new Uint8Array(result);
view.set(new Uint8Array(arrayBuffer));
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
return result;
}