See the patch here: https://github.com/haiku/haikuwebkit/commit/c8f63951a5f3d5acfd7c40d1606f830272ad791b This problem already existed a long time ago and was fixed in https://bugs.webkit.org/show_bug.cgi?id=229886 But then it was broken again in https://bugs.webkit.org/show_bug.cgi?id=249598 which results in accessing lastError after the statement is destroyed, instead of before. As a sidenote I think https://bugs.webkit.org/show_bug.cgi?id=68465 was also fixed by the second of these changes, and can be closed.
<rdar://problem/112475480>
*** Bug 259312 has been marked as a duplicate of this bug. ***
Pull request: https://github.com/WebKit/WebKit/pull/15908
Thanks for spotting this regression, we will try to apply the fix.
Committed 266139@main (a4485084ec04): <https://commits.webkit.org/266139@main> Reviewed commits have been landed. Closing PR #15908 and removing active labels.