ecma-6 spec fix