es-env-remove-footguns
Removing some footguns from an ECMAScript environment.
WARNING! this will turn the environment you're running in non-standard. Your own code or some dependency code may break as a result.
Install
npm install es-env-remove-footguns --save
How to use it
Just require
it before anything else. Beware, this may break dependent packages. Use at your own risk!
require;
Potential limitations
For now, this has only been tested and used on Node.js™ 0.10. It should work fine on 0.12 and io.js but in the unlikely case you run into problems, please file an issue
Changes
(should) remove Object.prototype.proto
Using this one for setting hurts performance and for getting, the standard Object.getPrototypeOf does the job fine
isNaN
with a function that throws
Replace isNaN
is broken, ES6 fixed it with Number.isNaN
, let's just kill isNaN
.
Licence
ISC