diff options
author | stephan <stephan@noemail.net> | 2022-12-25 10:22:27 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-12-25 10:22:27 +0000 |
commit | 75c04ba89cee1bb6b7b2b599eeacfbd063c84703 (patch) | |
tree | 99b7501c438e08cf75f1badbb789a1f49c7149d1 /ext/wasm/api/sqlite3-api-prologue.js | |
parent | 4099b3cab3c3451a2d9643738308be0b2d9e44b1 (diff) | |
download | sqlite-75c04ba89cee1bb6b7b2b599eeacfbd063c84703.tar.gz sqlite-75c04ba89cee1bb6b7b2b599eeacfbd063c84703.zip |
Simplify the signature for JS functions, as opposed to function pointers, passed to sqlite3_exec(), eliminating the superfluous initial two arguments. Update related tests to demonstrate both function-passing approaches.
FossilOrigin-Name: e7cc70cdda426863f82ebe1305f4c3053824c5a605b1516b0b7f205f1203178b
Diffstat (limited to 'ext/wasm/api/sqlite3-api-prologue.js')
-rw-r--r-- | ext/wasm/api/sqlite3-api-prologue.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/wasm/api/sqlite3-api-prologue.js b/ext/wasm/api/sqlite3-api-prologue.js index faa2dbbbf..e207fc194 100644 --- a/ext/wasm/api/sqlite3-api-prologue.js +++ b/ext/wasm/api/sqlite3-api-prologue.js @@ -948,7 +948,7 @@ self.sqlite3ApiBootstrap = function sqlite3ApiBootstrap( const m = f._rx.exec(opt); rv[0] = (m ? m[1] : opt); rv[1] = m ? (f._rxInt.test(m[2]) ? +m[2] : m[2]) : true; - }; + }; } const rc = {}, ov = [0,0]; let i = 0, k; @@ -1749,8 +1749,8 @@ self.sqlite3ApiBootstrap = function sqlite3ApiBootstrap( argument of sqlite3_value_to_js(). If the sqlite3_column_value() returns NULL (e.g. because the column index is out of range), this function returns `undefined`, regardless of the 3rd - argument. 3rd argument is falsy and conversion fails, `undefined` - will be returned. + argument. If the 3rd argument is falsy and conversion fails, + `undefined` will be returned. Note that sqlite3_column_value() returns an "unprotected" value object, but in a single-threaded environment (like this one) |