aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-api-prologue.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-10-03 08:21:06 +0000
committerstephan <stephan@noemail.net>2022-10-03 08:21:06 +0000
commitef9cd12ec4d14c836e198171eef3e04f674bb039 (patch)
treef8caf72f87a4bd2c8f192dfcc3c3ae953e4ad808 /ext/wasm/api/sqlite3-api-prologue.js
parent510a9d1c6456a959f316353737f60e9300e600e4 (diff)
downloadsqlite-ef9cd12ec4d14c836e198171eef3e04f674bb039.tar.gz
sqlite-ef9cd12ec4d14c836e198171eef3e04f674bb039.zip
Minor JS API tweaks prompted by documenting them.
FossilOrigin-Name: a82e6faaa642b09d241232c4daa67134d4dfa24bf3ca3725740346ca5269b381
Diffstat (limited to 'ext/wasm/api/sqlite3-api-prologue.js')
-rw-r--r--ext/wasm/api/sqlite3-api-prologue.js6
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 f21655b82..83e47cc93 100644
--- a/ext/wasm/api/sqlite3-api-prologue.js
+++ b/ext/wasm/api/sqlite3-api-prologue.js
@@ -260,10 +260,10 @@ self.sqlite3ApiBootstrap = function sqlite3ApiBootstrap(
/**
If v is-a Array, its join('') result is returned. If
- isSQLableTypedArray(v) then typedArrayToString(v) is
+ isSQLableTypedArray(v) is true then typedArrayToString(v) is
returned. Else v is returned as-is.
*/
- const arrayToString = function(v){
+ const flexibleString = function(v){
if(isSQLableTypedArray(v)) return typedArrayToString(v);
else if(Array.isArray(v)) return v.join('');
return v;
@@ -516,7 +516,7 @@ self.sqlite3ApiBootstrap = function sqlite3ApiBootstrap(
removed.
*/
util:{
- affirmBindableTypedArray, arrayToString,
+ affirmBindableTypedArray, flexibleString,
bigIntFits32, bigIntFits64, bigIntFitsDouble,
isBindableTypedArray,
isInt32, isSQLableTypedArray, isTypedArray,