diff options
author | stephan <stephan@noemail.net> | 2022-08-29 12:31:57 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-08-29 12:31:57 +0000 |
commit | f2e624ea918d6509165a07205d08acd7ffe77927 (patch) | |
tree | 9694584a08e5b98281d73254d0b11f7d2fa322a8 /ext/wasm/api/sqlite3-api-oo1.js | |
parent | 9a2efd8e1f488c3c00295bc7490e3b40ebc192c4 (diff) | |
download | sqlite-f2e624ea918d6509165a07205d08acd7ffe77927.tar.gz sqlite-f2e624ea918d6509165a07205d08acd7ffe77927.zip |
Add get/setPtrValue() to the common wasm utils.
FossilOrigin-Name: 24d70fc458c6002d5ff3c9f8ce7c66bde299b32aca6417c2dd1236e1412b036d
Diffstat (limited to 'ext/wasm/api/sqlite3-api-oo1.js')
-rw-r--r-- | ext/wasm/api/sqlite3-api-oo1.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/wasm/api/sqlite3-api-oo1.js b/ext/wasm/api/sqlite3-api-oo1.js index 6317f97f5..5d4b19b5a 100644 --- a/ext/wasm/api/sqlite3-api-oo1.js +++ b/ext/wasm/api/sqlite3-api-oo1.js @@ -553,8 +553,8 @@ self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){ DB.checkRc(this, capi.sqlite3_prepare_v3( this.pointer, pSql, sqlByteLen, 0, ppStmt, pzTail )); - const pStmt = wasm.getMemValue(ppStmt, wasm.ptrIR); - pSql = wasm.getMemValue(pzTail, wasm.ptrIR); + const pStmt = wasm.getPtrValue(ppStmt); + pSql = wasm.getPtrValue(pzTail); sqlByteLen = pSqlEnd - pSql; if(!pStmt) continue; if(Array.isArray(opt.saveSql)){ |