aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/common/whwasmutil.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2024-04-26 18:42:50 +0000
committerstephan <stephan@noemail.net>2024-04-26 18:42:50 +0000
commitb95c1d0ac9d020a9abd51c221194e188f25b69a9 (patch)
treea70a5862e0ebf8adfa904ce6748b358b0c064985 /ext/wasm/common/whwasmutil.js
parent6c290ccd49248e6e53937172bea6598ed77eee69 (diff)
downloadsqlite-b95c1d0ac9d020a9abd51c221194e188f25b69a9.tar.gz
sqlite-b95c1d0ac9d020a9abd51c221194e188f25b69a9.zip
Internal JS doc touchups. No functional changes.
FossilOrigin-Name: 626b997b4e727554d7ec8b60fb37b2a94cb861a87325da4ae484bd9aa8961ca5
Diffstat (limited to 'ext/wasm/common/whwasmutil.js')
-rw-r--r--ext/wasm/common/whwasmutil.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/wasm/common/whwasmutil.js b/ext/wasm/common/whwasmutil.js
index 65421e3fa..bbcf3d493 100644
--- a/ext/wasm/common/whwasmutil.js
+++ b/ext/wasm/common/whwasmutil.js
@@ -1925,15 +1925,15 @@ globalThis.WhWasmUtilInstaller = function(target){
const C-string, encoded as UTF-8, copies it to a JS string,
and returns that JS string.
- - `string:dealloc` or `utf8:dealloc) (results): treats the result value
- as a non-const UTF-8 C-string, ownership of which has just been
- transfered to the caller. It copies the C-string to a JS
- string, frees the C-string, and returns the JS string. If such
- a result value is NULL, the JS result is `null`. Achtung: when
- using an API which returns results from a specific allocator,
- e.g. `my_malloc()`, this conversion _is not legal_. Instead, an
- equivalent conversion which uses the appropriate deallocator is
- required. For example:
+ - `string:dealloc` or `utf8:dealloc` (results): treats the result
+ value as a non-const UTF-8 C-string, ownership of which has
+ just been transfered to the caller. It copies the C-string to a
+ JS string, frees the C-string, and returns the JS string. If
+ such a result value is NULL, the JS result is `null`. Achtung:
+ when using an API which returns results from a specific
+ allocator, e.g. `my_malloc()`, this conversion _is not
+ legal_. Instead, an equivalent conversion which uses the
+ appropriate deallocator is required. For example:
```js
target.xWrap.resultAdapter('string:my_free',(i)=>{