diff --git a/ExportAdapter.js b/ExportAdapter.js index db586d83..0277e882 100644 --- a/ExportAdapter.js +++ b/ExportAdapter.js @@ -245,7 +245,7 @@ ExportAdapter.prototype.handleRelationUpdates = function(className, } if (op.__op == 'Batch') { - for (x of op.ops) { + for (var x of op.ops) { process(x, key); } } diff --git a/RestQuery.js b/RestQuery.js index f136206a..8c9bf712 100644 --- a/RestQuery.js +++ b/RestQuery.js @@ -434,7 +434,7 @@ function includePath(config, auth, response, path) { function findPointers(object, path) { if (object instanceof Array) { var answer = []; - for (x of object) { + for (var x of object) { answer = answer.concat(findPointers(x, path)); } return answer; diff --git a/spec/helper.js b/spec/helper.js index 255d61f8..761796a6 100644 --- a/spec/helper.js +++ b/spec/helper.js @@ -153,7 +153,7 @@ function normalize(obj) { return '[' + obj.map(normalize).join(', ') + ']'; } var answer = '{'; - for (key of Object.keys(obj).sort()) { + for (var key of Object.keys(obj).sort()) { answer += key + ': '; answer += normalize(obj[key]); answer += ', '; @@ -192,7 +192,7 @@ function mockFacebook() { function clearData() { var promises = []; - for (conn in DatabaseAdapter.dbConnections) { + for (var conn in DatabaseAdapter.dbConnections) { promises.push(DatabaseAdapter.dbConnections[conn].deleteEverything()); } return Promise.all(promises);