es6-features icon indicating copy to clipboard operation
es6-features copied to clipboard

TypedArrays wrong?

Open pmarques opened this issue 8 years ago • 3 comments

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.

pmarques avatar May 04 '16 18:05 pmarques

You are right, the example is wrong. I'll try to fix it soon.

rse avatar Jun 25 '16 16:06 rse

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

extempl avatar Sep 30 '16 03:09 extempl

The line height issue is now fixed. The fixed TypedArray example still not (still coming).

rse avatar Oct 01 '16 09:10 rse