erikolson186 / zangodb

MongoDB-like interface for HTML5 IndexedDB
https://erikolson186.github.io/zangodb/
MIT License
1.07k stars 72 forks source link

hint error #43

Open billypon opened 2 years ago

billypon commented 2 years ago

collection.find().sort({ x: 1 }).hint('x').toArray() will get this error:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'args')
    at removeClause (create_next_fn.js:39:1)
    at create_next_fn.js:357:1
    at createGetIDBReqFn (create_next_fn.js:358:1)
    at createGetIDBCurFn (create_next_fn.js:378:1)
    at createNextFn (create_next_fn.js:521:1)
    at push../node_modules/zangodb/build/src/create_next_fn.js.module.exports (create_next_fn.js:572:1)
    at Cursor._init (cursor.js:321:1)
    at Cursor._forEach (cursor.js:62:1)
    at Cursor._toArray (cursor.js:115:1)
    at Cursor.toArray (cursor.js:142:1)