Polyfill for Function.create