es6-features
es6-features copied to clipboard
TypedArrays wrong?
I was looking around and in TypedArrays the example seems to not work properly for username.
In the username setter you have this._username[0] = v
v is a string _username is a Uint8Array, I was wondering if there is a new feature to cast one into the other but I didn't find anything.
I understand if this is just for a example, I just want to know if there is something that I didn't catch.
You are right, the example is wrong. I'll try to fix it soon.
Btw, @rse you should either increase line-height in the code or remove extra highlight background (maybe make it semi-transparent), because in some parts comma looks like a dot: https://cl.ly/0y2c3k2w1x2R
The line height issue is now fixed. The fixed TypedArray example still not (still coming).