mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-01 06:27:03 +03:00
The very basics of a Promise-based proxy for the Worker #1 API. Still requires considerable cleanup, testing, and a solution for the exec-callback-via-event-type-name problem.
FossilOrigin-Name: 1e447849fb65887e806e3348a8a68f70ea6802bc0a1e56c385a279f27cc0cdda
This commit is contained in:
@ -191,10 +191,7 @@
|
||||
*/
|
||||
initSqlite3: function(){
|
||||
self.sqlite3ApiConfig = this.sqlite3ApiConfig;
|
||||
return self.sqlite3InitModule(this).then(function(M){
|
||||
delete self.sqlite3ApiConfig;
|
||||
return M;
|
||||
});
|
||||
return self.sqlite3InitModule(this).finally(()=>delete self.sqlite3ApiConfig);
|
||||
}
|
||||
};
|
||||
})(self/*window or worker*/);
|
||||
|
Reference in New Issue
Block a user