mirror of
https://github.com/sqlite/sqlite.git
synced 2025-12-24 14:17:58 +03:00
JS: ensure that sqlite3WorkerPromiser.v2.defaultConfig initially refers to sqlite3WorkerPromiser.defaultConfig. This fixes a longstanding oversight rather than a known in-the-wild problem.
FossilOrigin-Name: cf7163f82ca380958a79350473b2c5a2cebda7496d6d575fa2835c362010fea1
This commit is contained in:
@@ -296,7 +296,7 @@ globalThis.sqlite3Worker1Promiser.defaultConfig = {
|
||||
after calling the original function and will reject if that
|
||||
function throws.
|
||||
*/
|
||||
sqlite3Worker1Promiser.v2 = function(config){
|
||||
globalThis.sqlite3Worker1Promiser.v2 = function(config){
|
||||
let oldFunc;
|
||||
if( 'function' == typeof config ){
|
||||
oldFunc = config;
|
||||
@@ -331,6 +331,9 @@ sqlite3Worker1Promiser.v2 = function(config){
|
||||
original: sqlite3Worker1Promiser
|
||||
});
|
||||
|
||||
globalThis.sqlite3Worker1Promiser.v2.defaultConfig =
|
||||
globalThis.sqlite3Worker1Promiser.defaultConfig;
|
||||
|
||||
//#if target=es6-module
|
||||
/**
|
||||
When built as a module, we export sqlite3Worker1Promiser.v2()
|
||||
|
||||
Reference in New Issue
Block a user