Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I suspect it might have something to do with allowing developers to extend the built-in types - I know that changes were made between ES5 and ES6 to allow subclassing Array, could well be the same issue. See Symbol.species for instance.

Wait, it's actually most likely because in ES6 you can use `new RegExp()` as well as `RegExp()` to create a new object.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: