All Projects → NeilFraser → JS-Polyfills

NeilFraser / JS-Polyfills

Licence: other
A collection of polyfills that recreate many functions in JavaScript's standard library.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

JS Polyfills

This collection of polyfills recreates much of the JavaScript 5.1 standard library, such as parseInt, Array.prototype.pop and Math.abs.

Most developers will have no need for this library since every JavaScript implementation already includes these functions. However, if you are building a new JavaScript interpreter, then this collection of over 50 polyfills will reduce the number of native code functions you will need to write.

Limitations:

  • At this time there is no support for Date or RegExp.
  • JSON is not covered due to the existing JSON2 and JSON3 polyfills.
  • Performance is pretty poor, particularly for String's substring and Array's shift/unshift.
  • Only JavaScript 5.1 is being targeted, plenty of existing polyfills are available for functionality introduced in higher versions.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].