Skip to content

Commit 152ea89

Browse files
comment
1 parent 0bbafba commit 152ea89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/capacitor/src/sync/CapacitorBucketStorageAdapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export class CapacitorBucketStorageAdapter extends SqliteBucketStorage {
55
if (payload instanceof Uint8Array && (payload as any)['_isBuffer'] == true) {
66
/**
77
* The Buffer polyfill, used in @powersync/common, is a Uint8Array subclass which defines additional fields like
8-
* `_isBuffer` on its `prototype`. The additional fields are serialized when passed through the native bridge.
8+
* `_isBuffer` and `parent` on its `prototype`. The additional fields are serialized when passed through the native bridge.
99
* The Capacitor Community SQLite lib expects a dictionarty of indexes to numerical bytes.
1010
* The additiona fields (which are not an index to numerical byte mapping) cause the parsing logic in the SQLite lib to throw an error:
1111
* "Error in reading buffer".

0 commit comments

Comments
 (0)