Open
Description
Expected Behavior
Calling SQLite.enablePromise(true)
after its already been called should result in a no-op.
Current Behavior
Calling SQLite.enablePromise(true)
more than once will break the library.
Possible Solution
Calling SQLite.enablePromise(true)
multiple times will corrupt the library, causing errors such as RangeError: Maximum call stack size exceeded
.
The way this method is written, it rewires the methods on the exported SQLite class from callback-based to promise-based. It does not have any safety check for whether this operation has previously already occurred, so the operation ends up rewiring methods a second time, breaking them entirely.
Metadata
Metadata
Assignees
Labels
No labels