-
-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels