diff options
author | stephan <stephan@noemail.net> | 2022-10-16 18:57:15 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-10-16 18:57:15 +0000 |
commit | 2676fc58c86a497f8f2510dfe48e843d7371d88b (patch) | |
tree | b1141195ff2d451276449e14294b149a6992ae0f /ext/wasm/api/sqlite3-api-oo1.js | |
parent | 824bb5b8db88d064640a8e9d72b2204b916433e0 (diff) | |
download | sqlite-2676fc58c86a497f8f2510dfe48e843d7371d88b.tar.gz sqlite-2676fc58c86a497f8f2510dfe48e843d7371d88b.zip |
Minor tweak to get bring an edge case of oo1.DB.createFunction() into aggreement with its docs.
FossilOrigin-Name: 8d59ccd9f357fbed0b0790508ca9027194fc4b0131029f9f460c7b4bde806a5f
Diffstat (limited to 'ext/wasm/api/sqlite3-api-oo1.js')
-rw-r--r-- | ext/wasm/api/sqlite3-api-oo1.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/wasm/api/sqlite3-api-oo1.js b/ext/wasm/api/sqlite3-api-oo1.js index f77540675..f1014fcc0 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; |