Skip to content

Commit cef32ed

Browse files
committed
Make __table and xRec compatible with comlink
1 parent 5ba9fe0 commit cef32ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/core/src/database/declarative-database.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,13 +345,13 @@ export class DeclarativeDatabase {
345345
Object.defineProperty(record, 'xRec', {
346346
value: { ...data },
347347
writable: false,
348-
enumerable: false,
348+
enumerable: true,
349349
configurable: true // Allow reconfiguring after save
350350
});
351351
Object.defineProperty(record, '__tableName', {
352352
value: tableName,
353353
writable: false,
354-
enumerable: false,
354+
enumerable: true,
355355
configurable: false
356356
});
357357
return record;
@@ -474,7 +474,7 @@ export class DeclarativeDatabase {
474474
Object.defineProperty(record, 'xRec', {
475475
value: this._extractRecordData(fresh),
476476
writable: false,
477-
enumerable: false,
477+
enumerable: true,
478478
configurable: true
479479
});
480480
}
@@ -508,7 +508,7 @@ export class DeclarativeDatabase {
508508
Object.defineProperty(record, 'xRec', {
509509
value: this._extractRecordData(fresh),
510510
writable: false,
511-
enumerable: false,
511+
enumerable: true,
512512
configurable: true
513513
});
514514
}

0 commit comments

Comments
 (0)