]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Dynamically determine whether the wasm.xWrap() argc check workaround for JSPI is... jspi
authorstephan <stephan@noemail.net>
Thu, 27 Jul 2023 15:00:28 +0000 (15:00 +0000)
committerstephan <stephan@noemail.net>
Thu, 27 Jul 2023 15:00:28 +0000 (15:00 +0000)
FossilOrigin-Name: 86bb464f31b77ac7a89ee9a50c3d988a186f84fa0bbee16b15fcbbac33523fa1

ext/wasm/api/sqlite3-api-glue.js
manifest
manifest.uuid

index d4f9918052dea67fe2aef3d02488224a8e6a8fed..ee308e695bc2896e97352c0967598ea803e29fb6 100644 (file)
@@ -728,10 +728,13 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
        Populate api object with sqlite3_...() by binding the "raw" wasm
        exports into type-converting proxies using wasm.xWrap().
     */
-//#if jspi
-    wasm.xWrap.doArgcCheck = false;
-    console.warn("Disabling sqlite3.wasm.xWrap.doArgcCheck for JSPI's sake.");
-//#endif
+    if(0 === wasm.exports.sqlite3_open_v2.length){
+      /* This environment wraps exports in nullary functions, which means
+         we must disable the arg-count validation we otherwise perform
+         on the wrappers. */
+      wasm.xWrap.doArgcCheck = false;
+      sqlite3.config.warn("Disabling sqlite3.wasm.xWrap.doArgcCheck due to environmental quirks.");
+    }
     for(const e of wasm.bindingSignatures){
       capi[e[0]] = wasm.xWrap.apply(null, e);
     }
index 6385122cd52ca4cdce195058d12fd6ada44a6432..1db1d604ec0e6efc29e6e018878d643d46a12aa5 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Accommodate\sa\sbreaking\schange\sin\semcc\s3.1.44.
-D 2023-07-27T01:35:11.655
+C Dynamically\sdetermine\swhether\sthe\swasm.xWrap()\sargc\scheck\sworkaround\sfor\sJSPI\sis\snecessary,\sinstead\sof\sbaking\sit\sin\sto\sJSPI\sbuilds.
+D 2023-07-27T15:00:28.218
 F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
 F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
 F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724
@@ -495,7 +495,7 @@ F ext/wasm/api/post-js-footer.js cd0a8ec768501d9bd45d325ab0442037fb0e33d1f3b4f08
 F ext/wasm/api/post-js-header.js 47b6b281f39ad59fa6e8b658308cd98ea292c286a68407b35ff3ed9cfd281a62
 F ext/wasm/api/pre-js.c-pp.js 572c762b53101781b5e1c35dc62729e3eda616d113153f8199df843a7c1ff6da
 F ext/wasm/api/sqlite3-api-cleanup.js d235ad237df6954145404305040991c72ef8b1881715d2a650dda7b3c2576d0e
-F ext/wasm/api/sqlite3-api-glue.js 47843a29fb894f8d4b580cc7789f5c9ceaf6fcb9502a43df03db2bfbc4611f77
+F ext/wasm/api/sqlite3-api-glue.js 79c63d784bba2e953f0717f982595abbe461ba2475a3b733116d080545343025
 F ext/wasm/api/sqlite3-api-oo1.js 9678dc4d9a5d39632b6ffe6ea94a023119260815bf32f265bf5f6c36c9516db8
 F ext/wasm/api/sqlite3-api-prologue.js cbd7d6ba185f3a844a8b0020e954b49bbc2ca78b305d117bec2ceca21431795a
 F ext/wasm/api/sqlite3-api-worker1.js 9f32af64df1a031071912eea7a201557fe39b1738645c0134562bb84e88e2fec
@@ -2044,8 +2044,8 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
 F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
 F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
-P 5b178f92f5faea83734aeacf79a06a8fcfc2f392db5d430d2c083b4d2ff4af5f
-R 72f4b5681f78519d8aaef0748a985688
+P 4ce386030092b8bafe860350c66ef5516b6aea75bd1b4467ac184875109d66e7
+R c52ecea97fdf221f729bbf9a2f0e8855
 U stephan
-Z 953578e5b49d0c13c5344b55cb683f8f
+Z 93d381321ad94ab96168faf5e06a9b7f
 # Remove this line to create a well-formed Fossil manifest.
index ae65922f35eec2a09f95199ec3cd525bffa9872d..a2f3e45eeb6bb5cfca3954c223893d4b0f95f5c9 100644 (file)
@@ -1 +1 @@
-4ce386030092b8bafe860350c66ef5516b6aea75bd1b4467ac184875109d66e7
\ No newline at end of file
+86bb464f31b77ac7a89ee9a50c3d988a186f84fa0bbee16b15fcbbac33523fa1
\ No newline at end of file