Minimal example:
const db = open({ name: 'mydb.sqlite' });
(async () => {
try {
console.log(await db.executeAsync('SELECT ?', [new ArrayBuffer(10)]));
}
catch(e) {
console.log(e);
}
})().catch(() => {});
Output:
Error: `data()` can only be accessed synchronously on the JS Thread! If you want to access it elsewhere, copy it first.
It seems ArrayBuffer needs to have its data extracted and copied (or transferred) before sending it to Promise::async.
Minimal example:
Output:
It seems
ArrayBufferneeds to have its data extracted and copied (or transferred) before sending it toPromise::async.