Closed zloirock closed 9 years ago
RegExp(); // => TypeError: Cannot read property 'constructor' of undefined, should be equal RegExp('')
21.2.3.2.2, step 1
For example,
npm i es6-shim sugar iojs > require('es6-shim'); > require('sugar'); >>> TypeError: Cannot read property 'constructor' of undefined
Wow, thanks, great catch. Fix incoming.
It does not cover
RegExp(null); RegExp(undefined);
Thanks, will fix that now.
21.2.3.2.2, step 1
Critical, breaks some libraries
For example,