diff --git a/lib/datastore.js b/lib/datastore.js index 69165fd..e12ab8b 100644 --- a/lib/datastore.js +++ b/lib/datastore.js @@ -590,5 +590,4 @@ Datastore.prototype.remove = function () { - module.exports = Datastore; diff --git a/lib/executor.js b/lib/executor.js index a8eace0..2f0307d 100644 --- a/lib/executor.js +++ b/lib/executor.js @@ -24,7 +24,8 @@ function Executor () { cb(); }; - task.arguments.push(callback); + // task.arguments is an array-like object so push is not available + task.arguments[task.arguments.length] = callback; } task.fn.apply(task.this, task.arguments);