es-env-remove-footguns

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i es-env-remove-footguns

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • davidbruant