/** * @param {Object} context * @param {any[]} args * @return {any} */ Function.prototype.callPolyfill = function(context, ...args) { return this.apply(context, args); }; /** * function increment() { this.count++; return this.count; } * increment.callPolyfill({count: 1}); // 2 */