diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/wasm/api/sqlite3-wasm.c | 2 | ||||
-rw-r--r-- | ext/wasm/testing1.js | 9 |
2 files changed, 4 insertions, 7 deletions
diff --git a/ext/wasm/api/sqlite3-wasm.c b/ext/wasm/api/sqlite3-wasm.c index e1e5be248..cf9a1a3db 100644 --- a/ext/wasm/api/sqlite3-wasm.c +++ b/ext/wasm/api/sqlite3-wasm.c @@ -503,7 +503,7 @@ const char * sqlite3_wasm_enum_json(void){ #define CurrentStruct sqlite3_file StructBinder { - M(pMethods,"P"); + M(pMethods,"p"); } _StructBinder; #undef CurrentStruct 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); |