Please review JDK-8025589: Array.prototype.shift should only copy defined elements in generic mode: http://cr.openjdk.java.net/~hannesw/8025589/ This is very similar to the Array.prototype.slice fix earlier today. Hannes