Skip to content

Commit 70613a1

Browse files
committed
Make DO id.jurisdiction property non-experimental
1 parent 45c534d commit 70613a1

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/workerd/api/actor.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,11 @@ class DurableObjectId: public jsg::Object {
6666
return id->getJurisdiction();
6767
}
6868

69-
JSG_RESOURCE_TYPE(DurableObjectId, CompatibilityFlags::Reader flags) {
69+
JSG_RESOURCE_TYPE(DurableObjectId) {
7070
JSG_METHOD(toString);
7171
JSG_METHOD(equals);
7272
JSG_READONLY_INSTANCE_PROPERTY(name, getName);
73-
if (flags.getWorkerdExperimental()) {
74-
// `jurisdiction` is marked as experimental because it will be undefined when called on the
75-
// `DurableObjectId` stored within a Durable Object class as `this.ctx.id`.
76-
//
77-
// TODO(soon): Ensure that `jurisdiction` is always available on a `DurableObjectId`.
78-
JSG_READONLY_INSTANCE_PROPERTY(jurisdiction, getJurisdiction);
79-
}
73+
JSG_READONLY_INSTANCE_PROPERTY(jurisdiction, getJurisdiction);
8074
}
8175

8276
void visitForMemoryInfo(jsg::MemoryTracker& tracker) const {

0 commit comments

Comments
 (0)