Skip to content

Commit f82122f

Browse files
committed
Merge pull request #179 from maysale01/hotfix-fix-iterator-syntax-for-future-es-syntax
Hotfix: Missing variable declarations on iterators. This makes runn…
2 parents 96609e3 + 52769cc commit f82122f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ExportAdapter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ ExportAdapter.prototype.handleRelationUpdates = function(className,
245245
}
246246

247247
if (op.__op == 'Batch') {
248-
for (x of op.ops) {
248+
for (var x of op.ops) {
249249
process(x, key);
250250
}
251251
}

RestQuery.js

+1-1
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

+2-2
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)