You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 asRangeError: 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.
The text was updated successfully, but these errors were encountered: