diff options
author | stephan <stephan@noemail.net> | 2023-08-29 20:01:01 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2023-08-29 20:01:01 +0000 |
commit | aa150477961c57bc0c873faf95f0bc600fc73af6 (patch) | |
tree | 6ab70c041e2a73e4004bb119a30ee6619c308e2f /ext/wasm/api/sqlite3-api-prologue.js | |
parent | 69a55ca17dc711a9b75eb738ab32336936d69fd7 (diff) | |
download | sqlite-aa150477961c57bc0c873faf95f0bc600fc73af6.tar.gz sqlite-aa150477961c57bc0c873faf95f0bc600fc73af6.zip |
JS SQLTestRunner can now run the Java impl's core-most sanity tests, missing only support for directives.
FossilOrigin-Name: 5e798369375ce1b0c9cdf831f835d931fbd562ff7b4db09a06d1bdca2ac1b975
Diffstat (limited to 'ext/wasm/api/sqlite3-api-prologue.js')
-rw-r--r-- | ext/wasm/api/sqlite3-api-prologue.js | 8 |
1 files changed, 4 insertions, 4 deletions
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); } } |