From 54fd0ddafe028d34b5ea498b63880b6aca60461d Mon Sep 17 00:00:00 2001 From: Sam Willis Date: Sat, 10 Aug 2024 11:08:06 +0100 Subject: [PATCH] Fix OPFS AHP state WAL loading --- packages/pglite/src/fs/opfs-ahp/opfsAhp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pglite/src/fs/opfs-ahp/opfsAhp.ts b/packages/pglite/src/fs/opfs-ahp/opfsAhp.ts index f0633d34..1f0c1a3d 100644 --- a/packages/pglite/src/fs/opfs-ahp/opfsAhp.ts +++ b/packages/pglite/src/fs/opfs-ahp/opfsAhp.ts @@ -122,7 +122,7 @@ export class OpfsAhp { if (typeof this[methodName as keyof this] === 'function') { try { const method = this[methodName as keyof this] as any - method(...entry.args) + method.bind(this)(...entry.args) } catch (e) { console.warn('Error applying OPFS AHP WAL entry', entry, e) }