Skip to content

Commit 52769cc

Browse files
author
Alexander Mays
committed
Fixed the missing variable declarations on iterators. This makes running the tests in ES6 pass!
Signed-off-by: Alexander Mays <[email protected]>
1 parent 477a091 commit 52769cc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ExportAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ ExportAdapter.prototype.handleRelationUpdates = function(className,
232232
}
233233

234234
if (op.__op == 'Batch') {
235-
for (x of op.ops) {
235+
for (var x of op.ops) {
236236
process(x, key);
237237
}
238238
}

RestQuery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ function includePath(config, auth, response, path) {
434434
function findPointers(object, path) {
435435
if (object instanceof Array) {
436436
var answer = [];
437-
for (x of object) {
437+
for (var x of object) {
438438
answer = answer.concat(findPointers(x, path));
439439
}
440440
return answer;

spec/helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function normalize(obj) {
153153
return '[' + obj.map(normalize).join(', ') + ']';
154154
}
155155
var answer = '{';
156-
for (key of Object.keys(obj).sort()) {
156+
for (var key of Object.keys(obj).sort()) {
157157
answer += key + ': ';
158158
answer += normalize(obj[key]);
159159
answer += ', ';
@@ -192,7 +192,7 @@ function mockFacebook() {
192192

193193
function clearData() {
194194
var promises = [];
195-
for (conn in DatabaseAdapter.dbConnections) {
195+
for (var conn in DatabaseAdapter.dbConnections) {
196196
promises.push(DatabaseAdapter.dbConnections[conn].deleteEverything());
197197
}
198198
return Promise.all(promises);

0 commit comments

Comments
 (0)