If I have a lot of errors when validating an array with a lot of documents, the function ValidatorResult.prototype.importErrors in helpers.js crashes when doing : Array.prototype.push.apply(this.errors, res.errors) because apply will push as many parameters as the number of elements in the res.errors array, on the stack, hence the exception.
This line can be replaced with : this.errors = this.errors.concat(res.errors)
If I have a lot of errors when validating an array with a lot of documents, the function ValidatorResult.prototype.importErrors in helpers.js crashes when doing : Array.prototype.push.apply(this.errors, res.errors) because apply will push as many parameters as the number of elements in the res.errors array, on the stack, hence the exception. This line can be replaced with : this.errors = this.errors.concat(res.errors)