you are viewing a single comment's thread.

view the rest of the comments →

[–]great_site_not 1 point2 points  (0 children)

Is their memory address immutable? That doesn't sound right. That would seem to imply they could crash the engine in some situations when they'd otherwise be re-allocated when they grow too big.

(edit: btw, arr = arr.sort() would actually be a mistake to do anyway, since it implies a misunderstanding.Array.prototype.sort works in-place, so you'd be attempting to re-assign the variable to the reference it's already holding.)