— stack[indexZero + index] = value; does ths assignment
stack[indexZero + index] = value;
For reference take does not remove elements from the array, it simply changes an arbitrary length variable in the Proxy and changes what take returns
— Yup index in set is a string
— So it is doing
> 0 + "3"'03'
— But whyyyyyyyyy
— That's JS, I guess.Same thing with:
> "5" - 32
— Well I wonder why it is casting index to string...
— Like, before set can get it
— This fixes it
stack[indexZero + Number(index)] = value;
— I feel like this is actually... a bug
— In JS