runOpfsWorker function
void
runOpfsWorker({
- VirtualFileSystem wrapFileSystem(
- VirtualFileSystem opfs
Serves the messages of the page. wrapFileSystem wraps the OPFS file
system before SQLite uses it (the tests inject I/O errors with it).
Implementation
void runOpfsWorker({
sqlite.VirtualFileSystem Function(sqlite.VirtualFileSystem opfs)?
wrapFileSystem,
}) {
final _Host host = _Host(wrapFileSystem);
_self.onmessage = (web.MessageEvent event) {
host.receive(event.data! as JSObject);
}.toJS;
}