preventExtensions

open override fun preventExtensions(): Boolean(source)

The dense fast paths of push, unshift and the rest grow the array without asking, so an array that may not grow keeps its elements in the slot map, where every write is checked. Upstream left an empty array dense when it was frozen, and any array dense when it was only made non-extensible, so push still appended to it.