Skip to content

Commit 6bee74c

Browse files
author
cod1k
committed
Make Durable Object properties enumerable and configurable
Previously, properties added to the Durable Object receiver were not enumerable, writable, or configurable by default. This change ensures these properties have full flexibility, improving compatibility and developer experience.
1 parent 8605816 commit 6bee74c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/cloudflare/src/durableobject.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,9 @@ function instrumentPrototype<T extends NewableFunction>(
261261
});
262262
Object.defineProperty(receiver, prop, {
263263
value: instrumented,
264+
enumerable: true,
265+
writable: true,
266+
configurable: true,
264267
});
265268
return instrumented;
266269
},

0 commit comments

Comments
 (0)