aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/testing1.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-09-26 11:34:31 +0000
committerstephan <stephan@noemail.net>2022-09-26 11:34:31 +0000
commit6a643e4bcdc81f835be75377d1c6306f5e23f541 (patch)
tree0702176a4d12433ca14cd12b200b6891322af54a /ext/wasm/testing1.js
parent395012e58e97554665b39d748f8ecd179f09dab8 (diff)
downloadsqlite-6a643e4bcdc81f835be75377d1c6306f5e23f541.tar.gz
sqlite-6a643e4bcdc81f835be75377d1c6306f5e23f541.zip
wasm: change StructBinder signature for sqlite3_file::pMethods from 'P' to 'p' to eliminate an unnecessary and inconsistent level of magic.
FossilOrigin-Name: 85f2e877e53899860af4dc6630044b471a9c7c82faba1f4e1e60ae991460b943
Diffstat (limited to 'ext/wasm/testing1.js')
-rw-r--r--ext/wasm/testing1.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/ext/wasm/testing1.js b/ext/wasm/testing1.js
index 574371909..e412b9c17 100644
--- a/ext/wasm/testing1.js
+++ b/ext/wasm/testing1.js
@@ -717,17 +717,14 @@
//log("sfile",sfile,sfile.constructor.prototype);
T.assert(0===sfile.$pMethods).assert(iom.pointer > 0);
//log("iom",iom);
- /** Some of the following tests require that pMethods has a
- signature of "P", as opposed to "p". */
- sfile.$pMethods = iom;
- T.assert(iom === sfile.$pMethods);
sfile.$pMethods = iom.pointer;
- T.assert(iom === sfile.$pMethods)
+ T.assert(iom.pointer === sfile.$pMethods)
.assert(IOM.resolveToInstance(iom))
.assert(undefined ===IOM.resolveToInstance(sfile))
.mustThrow(()=>IOM.resolveToInstance(0,true))
.assert(S3F.resolveToInstance(sfile.pointer))
- .assert(undefined===S3F.resolveToInstance(iom));
+ .assert(undefined===S3F.resolveToInstance(iom))
+ .assert(iom===IOM.resolveToInstance(sfile.$pMethods));
T.assert(0===iom.$iVersion);
installIOMethods(iom);
T.assert(1===iom.$iVersion);