kriszyp / lmdb-js

Simple, efficient, ultra-fast, scalable data store wrapper for LMDB
Other
486 stars 39 forks source link

src/cursor.cpp: throw on call to closed cursor; #31

Closed kristate closed 3 years ago

kristate commented 3 years ago

Although index.js wraps cursor.cpp, this patch throws an error if a cursor generator is used incorrectly as it could lead to a segfault/assert. Thanks.

kriszyp commented 3 years ago

Thanks for the PR, published in v1.0.1.