https://github.com/es-shims/es5-shim/blob/master/es5-shim.js#L48

See this file for the standard way of polyfilling.