News for hackers. Stuff that matters.
Re:How V8 handles JavaScript properties internally by pitaj on Thursday August 31, 2017 @11:51AM (#15141136)
Can you expand on your hatred of JS arrays? I don't understand how iteration semantics really affect anything with them since the spec gaurantees that numerical properties come first, in order, regardless.
Re:How V8 handles JavaScript properties internally by ridiculous_fish on Thursday August 31, 2017 @11:23PM (#15145877)
The biggest issue is precisely concerning the definition of "numerical properties". Here are some "numerical properties:"

    5
    -0
    "3"
    3.0
    4294967294
But these are not "numerical properties:"

    "-0"
    -1
    "3.0"
    4294967295
Which means that, when setting a property on an array, you must attempt to parse the object in a very peculiar way so that you can make a decision about iteration order, and whether to adjust the length property.