diff --git a/src/91indexeddb.js b/src/91indexeddb.js index ac36ac015d..b779669366 100755 --- a/src/91indexeddb.js +++ b/src/91indexeddb.js @@ -340,7 +340,8 @@ IDB.fromTable = function (databaseid, tableid, cb, idx, query) { const cursor = cur.result; if (cursor) { // if keyPath(columns) is not present then we take the key and value as object. - const cursorValue = typeof cursor === "object" ? cursor.value : {[cursor.key]: cursor.value}; + const cursorValue = + typeof cursor === 'object' ? cursor.value : {[cursor.key]: cursor.value}; res.push(cursorValue); cursor.continue(); } else { diff --git a/test/test1919.js b/test/test1919.js index 9a1b61c210..c8e96ae59a 100644 --- a/test/test1919.js +++ b/test/test1919.js @@ -12,14 +12,14 @@ describe(`Test 1919 Load data from JSONL file`, function () { a: 'foo', b: 5, c: true, - d: null + d: null, }, { a: 'bar', b: 8, c: false, - d: null - } + d: null, + }, ]; it('1. Load JSONL', function (done) { alasql('SELECT * FROM JSONL("' + __dirname + '/test1919")', [], function (res) {