rse / es6-features

ECMAScript 6: Feature Overview & Comparison

Home Page: https://rse.github.io/es6-features/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypedArrays wrong?

pmarques opened this issue · 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.

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).