1.0.0 • Published 9 years ago

es-env-remove-footguns v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

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('es-env-remove-footguns');

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

Replace isNaN with a function that throws

isNaN is broken, ES6 fixed it with Number.isNaN, let's just kill isNaN.

Licence

ISC