Skip to content

Commit c46c634

Browse files
committedMar 13, 2025
fix configurability
1 parent d4bf8a8 commit c46c634

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎packages/schema-record/src/-private/record.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,9 @@ export class SchemaRecord {
690690
);
691691

692692
if (DEBUG) {
693-
Object.defineProperty(proxy, '__SHOW_ME_THE_DATA_(debug mode only)__', {
693+
Object.defineProperty(this, '__SHOW_ME_THE_DATA_(debug mode only)__', {
694+
enumerable: false,
695+
configurable: true,
694696
get() {
695697
const data: Record<string, unknown> = {};
696698
for (const key of fields.keys()) {

‎packages/store/src/-private/record-arrays/identifier-array.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,9 @@ export class IdentifierArray<T = unknown> {
450450
}) as IdentifierArray<T>;
451451

452452
if (DEBUG) {
453-
Object.defineProperty(proxy, '__SHOW_ME_THE_DATA_(debug mode only)__', {
453+
Object.defineProperty(this, '__SHOW_ME_THE_DATA_(debug mode only)__', {
454+
enumerable: false,
455+
configurable: true,
454456
get() {
455457
return proxy.slice();
456458
},

0 commit comments

Comments
 (0)
Failed to load comments.