mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Refactor JS API amalgamation such that the bootstrapping/configuration is deferred until the whole amalgamation is available, to facilitate providing clients with a way to initialize the API with their own config (noting that we're still one small level of refactoring away from being able to actually do that).
FossilOrigin-Name: 9dbe9a6aecec43b51057375ef1d2d632db0d17eac8b7552c20cc91fc2f1a55d1
This commit is contained in:
@@ -43,7 +43,8 @@
|
||||
In some contexts, however, listening for the above message is
|
||||
a better fit.
|
||||
*/
|
||||
self.sqlite3.initWorker1API = function(){
|
||||
self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
|
||||
sqlite3.initWorker1API = function(){
|
||||
'use strict';
|
||||
/**
|
||||
UNDER CONSTRUCTION
|
||||
@@ -418,4 +419,6 @@ self.sqlite3.initWorker1API = function(){
|
||||
wState.post(evType, response, wMsgHandler.xfer);
|
||||
};
|
||||
setTimeout(()=>self.postMessage({type:'sqlite3-api',data:'worker1-ready'}), 0);
|
||||
}.bind({self, sqlite3: self.sqlite3});
|
||||
}.bind({self, sqlite3});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user