Created attachment 471882 [details] [diff] [review] add BYTES_PER_ELEMENT constant The spec wants this constant, because it's helpful when dealing with APIs that want to use this (such as WebGL) where you have to specify some things using byte offsets.
Comment on attachment 471882 [details] [diff] [review] add BYTES_PER_ELEMENT constant r=shaver, if the spec really requires it to be on both prototype and constructor (gross).
Where do we file spec bugs? Gotta avoid freezing those early mistakes (I should know!). We supposedly have grounds for hoping that WebGL JS bindings can change. /be
http://www.khronos.org/bugzilla/ -- WebGL component for now. Is it really that gross? Seems like it's useful to have it in both places...
It's formally gross to have it in two places, but on the prototype it also intrudes as if per-instance, when it's not. Usually constants are on the ctor (after "class statics"). But maybe usability favors on the proto, and since typed arrays are non-extensible, there's no shadowing hazard. I'll hold off on filing. /be