diff --git a/agents/recoverycore.js b/agents/recoverycore.js index c2504bef..818b40eb 100644 --- a/agents/recoverycore.js +++ b/agents/recoverycore.js @@ -26,6 +26,27 @@ try catch(x) { +} +try +{ + Object.defineProperty(Array.prototype, 'findIndex', { + value: function (func) + { + var i = 0; + for (i = 0; i < this.length; ++i) + { + if (func(this[i], i, this)) + { + return (i); + } + } + return (-1); + } + }); +} +catch (x) +{ + } if (process.platform != 'win32')