diff options
author | stephan <stephan@noemail.net> | 2022-11-23 16:39:07 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-11-23 16:39:07 +0000 |
commit | ad1285c5c0be7eb92cc44a3357be71507c3c07f2 (patch) | |
tree | 7845fbabe121ea9679c5625de7958fe4f6bff342 /ext/wasm/api/sqlite3-api-oo1.js | |
parent | c32e16643d8c364db7dcddafa83037c977ab797e (diff) | |
download | sqlite-ad1285c5c0be7eb92cc44a3357be71507c3c07f2.tar.gz sqlite-ad1285c5c0be7eb92cc44a3357be71507c3c07f2.zip |
Initial infrastructure for adding a mode to the OPFS VFS which causes implicit locks to be released ASAP, which increases concurrency at the cost of performance.
FossilOrigin-Name: c5b7a9715a13b696ab3ee965aa0a310f59b65f07cecd72faa2e3504bfd8eb632
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 02ce9c0ce..bc32ec106 100644 --- a/ext/wasm/api/sqlite3-api-oo1.js +++ b/ext/wasm/api/sqlite3-api-oo1.js @@ -200,9 +200,8 @@ self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){ */ dbCtorHelper.normalizeArgs = function(filename=':memory:',flags = 'c',vfs = null){ const arg = {}; - if(1===arguments.length && 'object'===typeof arguments[0]){ - const x = arguments[0]; - Object.keys(x).forEach((k)=>arg[k] = x[k]); + if(1===arguments.length && arguments[0] && 'object'===typeof arguments[0]){ + Object.assign(arg, arguments[0]); if(undefined===arg.flags) arg.flags = 'c'; if(undefined===arg.vfs) arg.vfs = null; if(undefined===arg.filename) arg.filename = ':memory:'; |