From 2676fc58c86a497f8f2510dfe48e843d7371d88b Mon Sep 17 00:00:00 2001 From: stephan Date: Sun, 16 Oct 2022 18:57:15 +0000 Subject: [PATCH] Minor tweak to get bring an edge case of oo1.DB.createFunction() into aggreement with its docs. FossilOrigin-Name: 8d59ccd9f357fbed0b0790508ca9027194fc4b0131029f9f460c7b4bde806a5f --- ext/wasm/api/sqlite3-api-oo1.js | 5 +++-- manifest | 12 ++++++------ manifest.uuid | 2 +- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/ext/wasm/api/sqlite3-api-oo1.js b/ext/wasm/api/sqlite3-api-oo1.js index f775406756..f1014fcc00 100644 --- a/ext/wasm/api/sqlite3-api-oo1.js +++ b/ext/wasm/api/sqlite3-api-oo1.js @@ -915,8 +915,9 @@ self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){ toss3("Missing function-type properties."); } const pApp = opt.pApp; - if(undefined!==pApp && (('number'!==typeof pApp) - || !capi.util.isInt32(pApp))){ + if(undefined!==pApp && + null!==pApp && + (('number'!==typeof pApp) || !capi.util.isInt32(pApp))){ toss3("Invalid value for pApp property. Must be a legal WASM pointer value."); } const xDestroy = opt.xDestroy; diff --git a/manifest b/manifest index 00b073fd77..d7401cafab 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Add\saggregate\sfunction\ssupport\sto\ssqlite3.oo1.DB.createFunction().\sChange\ssignature\sof\sthe\soptions\sobject\sused\sby\sthat\sfunction\sso\sthat\sthe\scallback\sproperty\snames\smatch\sthose\sof\sthe\scorresponding\sC\sAPIs. -D 2022-10-16T18:50:55.647 +C Minor\stweak\sto\sget\sbring\san\sedge\scase\sof\soo1.DB.createFunction()\sinto\saggreement\swith\sits\sdocs. +D 2022-10-16T18:57:15.939 F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1 F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724 @@ -485,7 +485,7 @@ F ext/wasm/api/post-js-header.js 2e5c886398013ba2af88028ecbced1e4b22dc96a86467f1 F ext/wasm/api/pre-js.js 5b550904322d73127badd4347ca967ea525b901573559736f92d326ad9b7bb76 F ext/wasm/api/sqlite3-api-cleanup.js 4d07a7524dc9b7b050acfde57163e839243ad2383bd7ee0de0178b1b3e988588 F ext/wasm/api/sqlite3-api-glue.js 05eb701460bb72edbe3bf923bd51262551614612c37802fc597eabb4c6b83232 -F ext/wasm/api/sqlite3-api-oo1.js f7f1fa6e6364347e99d0619ac1d3766dabab1e114cdf343259f38372576b6650 +F ext/wasm/api/sqlite3-api-oo1.js 9a5f0c00d476c504f16dcd456e1743dbc2826ca3d10645dfa62663a39e3ed0d8 F ext/wasm/api/sqlite3-api-opfs.js 5a8ab3b76880c8ada8710ca9ba1ca5b160872edfd8bd5322e4f179a7f41cc616 F ext/wasm/api/sqlite3-api-prologue.js a17b35814c6399a2e69c7836e5fd2eaa71f755ee51f96cb69d68cbf99985d45b F ext/wasm/api/sqlite3-api-worker1.js 7f4f46cb6b512a48572d7567233896e6a9c46570c44bdc3d13419730c7c221c8 @@ -2033,8 +2033,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 b5f462c2d85d503f6492ec20580d57cb4c926712f6306a6be764bd09d1f5e8b8 -R dc71c7ee6cfc588ad89cef2f6b6a3e75 +P a7db6e4b50beebfb1c97e0c4de49538d8199c166b18a0b1b175736c593128a00 +R 3422110515a596def98dff69dd1bdfc7 U stephan -Z 295c02a265fc3379708e7d138c173321 +Z eb1680ea30bd7067803bb7e8ee35441a # Remove this line to create a well-formed Fossil manifest. diff --git a/manifest.uuid b/manifest.uuid index f04ed5fbac..946bd8b7e8 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -a7db6e4b50beebfb1c97e0c4de49538d8199c166b18a0b1b175736c593128a00 \ No newline at end of file +8d59ccd9f357fbed0b0790508ca9027194fc4b0131029f9f460c7b4bde806a5f \ No newline at end of file