From aa150477961c57bc0c873faf95f0bc600fc73af6 Mon Sep 17 00:00:00 2001 From: stephan Date: Tue, 29 Aug 2023 20:01:01 +0000 Subject: JS SQLTestRunner can now run the Java impl's core-most sanity tests, missing only support for directives. FossilOrigin-Name: 5e798369375ce1b0c9cdf831f835d931fbd562ff7b4db09a06d1bdca2ac1b975 --- ext/wasm/api/sqlite3-api-prologue.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ext/wasm/api/sqlite3-api-prologue.js') diff --git a/ext/wasm/api/sqlite3-api-prologue.js b/ext/wasm/api/sqlite3-api-prologue.js index 35c856269..996f23298 100644 --- a/ext/wasm/api/sqlite3-api-prologue.js +++ b/ext/wasm/api/sqlite3-api-prologue.js @@ -1139,15 +1139,15 @@ globalThis.sqlite3ApiBootstrap = function sqlite3ApiBootstrap( /** Records the current pstack position, calls the given function, - and restores the pstack regardless of whether the function - throws. Returns the result of the call or propagates an - exception on error. + passing it the sqlite3 object, then restores the pstack + regardless of whether the function throws. Returns the result + of the call or propagates an exception on error. Added in 3.44. */ call: function(f){ const stackPos = wasm.pstack.pointer; - try{ return f() }finally{ + try{ return f(sqlite3) } finally{ wasm.pstack.restore(stackPos); } } -- cgit v1.2.3