aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-api-oo1.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-12-14 14:28:54 +0000
committerstephan <stephan@noemail.net>2022-12-14 14:28:54 +0000
commitfeb9123a8cc018fd0765ef47e1f5bad5b5b3f2aa (patch)
tree4d477b6d17ed695177643b28782be6cfdb969156 /ext/wasm/api/sqlite3-api-oo1.js
parentbca56f384f82331272128ff06eb580d27bd5ae7b (diff)
downloadsqlite-feb9123a8cc018fd0765ef47e1f5bad5b5b3f2aa.tar.gz
sqlite-feb9123a8cc018fd0765ef47e1f5bad5b5b3f2aa.zip
Add convenience variants of sqlite3.wasm.peek/poke() for each numeric type to help reduce errors related to typos in the final argument (type-name strings). If wasm.xWrap.FuncPtrAdapter is called as a function, instead of a constructor, it now behaves as if it were called as a constructor (previously it threw an exception).
FossilOrigin-Name: 14e3fc01b929fa3f9a2fdbd93deb4a8aad58c111d46369c772def0437152fa75
Diffstat (limited to 'ext/wasm/api/sqlite3-api-oo1.js')
-rw-r--r--ext/wasm/api/sqlite3-api-oo1.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/wasm/api/sqlite3-api-oo1.js b/ext/wasm/api/sqlite3-api-oo1.js
index adfcca4d9..59ecf56b9 100644
--- a/ext/wasm/api/sqlite3-api-oo1.js
+++ b/ext/wasm/api/sqlite3-api-oo1.js
@@ -442,9 +442,8 @@ self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
}else if('string'===typeof opt.rowMode && opt.rowMode.length>1){
/* "$X": fetch column named "X" (case-sensitive!). Prior
to 2022-12-14 ":X" and "@X" were also permitted, but
- that seems unnecessary and likely to cause
- confusion. $ is the clear usability winner because it
- doesn't require quoting in JS. */
+ having so many options is unnecessary and likely to
+ cause confusion. */
if('$'===opt.rowMode[0]){
out.cbArg = function(stmt){
const rc = stmt.get(this.obj)[this.colName];