diff options
author | stephan <stephan@noemail.net> | 2022-10-03 09:21:37 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-10-03 09:21:37 +0000 |
commit | 7ff8da876d147f8bc15814bc172e78c43a5afb8f (patch) | |
tree | 4a4540da76bb7047d1bfe23f53c7fcf440e31d47 /ext/wasm/common/whwasmutil.js | |
parent | bdfd7ea03a4764dcfaa091303c2b8bbf3fd323a0 (diff) | |
download | sqlite-7ff8da876d147f8bc15814bc172e78c43a5afb8f.tar.gz sqlite-7ff8da876d147f8bc15814bc172e78c43a5afb8f.zip |
OPFS VFS now lazily opens its sync access handle, as a step towards experimenting with relinquishing it during idle times to help avoid cross-tab and page-reload locking issues.
FossilOrigin-Name: a984e1ba435731413a541f86c50232bc7d6e33aff6ba4cca90f89188e7b82a2c
Diffstat (limited to 'ext/wasm/common/whwasmutil.js')
-rw-r--r-- | ext/wasm/common/whwasmutil.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/wasm/common/whwasmutil.js b/ext/wasm/common/whwasmutil.js index a0da492b0..c98b7cea4 100644 --- a/ext/wasm/common/whwasmutil.js +++ b/ext/wasm/common/whwasmutil.js @@ -371,16 +371,16 @@ self.WhWasmUtilInstaller = function(target){ /** Creates a WASM function which wraps the given JS function and returns the JS binding of that WASM function. The signature - argument must be the Jaccwabyt-format or Emscripten + string must be the Jaccwabyt-format or Emscripten addFunction()-format function signature string. In short: in may have one of the following formats: - - Emscripten: `x...`, where the first x is a letter representing + - Emscripten: `"x..."`, where the first x is a letter representing the result type and subsequent letters represent the argument types. Functions with no arguments have only a single letter. See below. - - Jaccwabyt: `x(...)` where `x` is the letter representing the + - Jaccwabyt: `"x(...)"` where `x` is the letter representing the result type and letters in the parens (if any) represent the argument types. Functions with no arguments use `x()`. See below. @@ -451,9 +451,9 @@ self.WhWasmUtilInstaller = function(target){ // is not yet documented on MDN. sigToWasm: function(sig){ const rc = {parameters:[], results: []}; - if('v'!==sig[0]) rc.results.push(f._.letterType(sig[0])); + if('v'!==sig[0]) rc.results.push(f.sigTypes(sig[0])); for(const x of f._.sigParams(sig)){ - rc.parameters.push(f._.letterType(x)); + rc.parameters.push(f._.typeCodes(x)); } return rc; },************/ |