getDurableObjectNamespace method

DurableObjectNamespace getDurableObjectNamespace(
  1. String name
)

Implementation

DurableObjectNamespace getDurableObjectNamespace(String name) {
  final obj = js_util.getProperty(this, name);
  if (obj == null) {
    // TODO better error
    throw StateError(
      'No durable object found',
    );
  }
  return obj;
}