diff options
author | stephan <stephan@noemail.net> | 2022-10-29 07:54:10 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-10-29 07:54:10 +0000 |
commit | 8948fbee29f8860ff6d116eaa66626ff11ab8064 (patch) | |
tree | 8b2a9b8faa122a7134e2b28485d9126f964763df /ext/wasm/api/sqlite3-api-oo1.js | |
parent | 053bb22f35c5dd153a62158ed2cc6376b5979212 (diff) | |
download | sqlite-8948fbee29f8860ff6d116eaa66626ff11ab8064.tar.gz sqlite-8948fbee29f8860ff6d116eaa66626ff11ab8064.zip |
Move the sqlite3.capi.wasm namespace to sqlite3.wasm. This causes a tiny bit of naming confusion with the sqlite3.wasm *file*, but seems to make more sense than having it as a sub-namespace of capi.
FossilOrigin-Name: 3f16eb18d6186ca972fca952ccac18649e7a905213f589e53c0c9333e695448d
Diffstat (limited to 'ext/wasm/api/sqlite3-api-oo1.js')
-rw-r--r-- | ext/wasm/api/sqlite3-api-oo1.js | 5 |
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 bab5a64ef..cbdf40f9b 100644 --- a/ext/wasm/api/sqlite3-api-oo1.js +++ b/ext/wasm/api/sqlite3-api-oo1.js @@ -18,7 +18,7 @@ self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){ const toss = (...args)=>{throw new Error(args.join(' '))}; const toss3 = (...args)=>{throw new sqlite3.SQLite3Error(...args)}; - const capi = sqlite3.capi, wasm = capi.wasm, util = capi.util; + const capi = sqlite3.capi, wasm = sqlite3.wasm, util = sqlite3.util; /* What follows is colloquially known as "OO API #1". It is a binding of the sqlite3 API which is designed to be run within the same thread (main or worker) as the one in which the @@ -694,7 +694,6 @@ self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){ */ exec: function(/*(sql [,obj]) || (obj)*/){ affirmDbOpen(this); - const wasm = capi.wasm; const arg = parseExecArgs(arguments); if(!arg.sql){ return (''===arg.sql) ? this : toss3("exec() requires an SQL string."); @@ -925,7 +924,7 @@ self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){ const pApp = opt.pApp; if(undefined!==pApp && null!==pApp && - (('number'!==typeof pApp) || !capi.util.isInt32(pApp))){ + (('number'!==typeof pApp) || !util.isInt32(pApp))){ toss3("Invalid value for pApp property. Must be a legal WASM pointer value."); } const xDestroy = opt.xDestroy || 0; |