typed array strawman proposal

Brendan Eich brendan at mozilla.com
Wed Jan 27 11:37:08 PST 2010


On Jan 27, 2010, at 10:56 AM, Vladimir Vukicevic wrote:

>  new Uint8Array(origArray.buffer, origArray.byteOffset + startIndex,  
> endIndex - startIndex);
>
> And assuming range(), a real slice() would be:  new  
> Uint8Array(origArray.slice(start, end));

Confirmed with Vlad that the last line's bit to the right of the :  
should be

new Uint8Array(origArray.range(start, end));

/be


More information about the es-discuss mailing list