State state(JSObject *self) {
  MOZ_ASSERT(is_instance(self));
  return (State)JS::GetReservedSlot(self, Slots::State).toInt32();
}
State state(JSObject *self) {
  MOZ_ASSERT(is_instance(self));
  return (State)JS::GetReservedSlot(self, Slots::State).toInt32();
}