Prevent unnecessary arraybuffer copy (thanks @vroad)

This commit is contained in:
Joshua Granick
2015-10-31 07:35:20 -07:00
parent 08059a6d82
commit e926e638f9

View File

@@ -895,8 +895,8 @@ class ByteArray #if !js extends Bytes implements ArrayAccess<Int> implements IDa
#if js
byteView = untyped __new__("Uint8Array", bytes.getData ());
length = byteView.length;
allocated = length;
length = byteView.length;
#else
b = bytes.b;
length = bytes.length;