1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Work around a JS null pointer deref which could be triggered from the dev console, but not (it seems) from client-side code.

FossilOrigin-Name: eabb551b8b3d33fc3a327ecf7225436a3a3f616901e22c868fd76a5e3adc7b3f
This commit is contained in:
stephan
2023-01-27 07:53:49 +00:00
parent ca86a5351e
commit 9dc093d095
3 changed files with 10 additions and 9 deletions

View File

@ -6,7 +6,9 @@
*/
// See notes in extern-post-js.js
const sqlite3InitModuleState = self.sqlite3InitModuleState || Object.create(null);
const sqlite3InitModuleState = self.sqlite3InitModuleState || Object.assign(Object.create(null),{
debugModule: ()=>{}
});
delete self.sqlite3InitModuleState;
sqlite3InitModuleState.debugModule('self.location =',self.location);