v1.0.0: alignment with ES6 draft
added index