Mode mode(JSObject *self) {
  MOZ_ASSERT(is_instance(self));
  return static_cast<Mode>(JS::GetReservedSlot(self, Slots::Mode).toInt32());
}
Mode mode(JSObject *self) {
  MOZ_ASSERT(is_instance(self));
  return static_cast<Mode>(JS::GetReservedSlot(self, Slots::Mode).toInt32());
}