aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/ExceptionOr.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/bindings/ExceptionOr.h')
-rw-r--r--src/bun.js/bindings/ExceptionOr.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/bun.js/bindings/ExceptionOr.h b/src/bun.js/bindings/ExceptionOr.h
index f3378466e..3bbc641a1 100644
--- a/src/bun.js/bindings/ExceptionOr.h
+++ b/src/bun.js/bindings/ExceptionOr.h
@@ -116,25 +116,21 @@ template<typename ReturnType> inline bool ExceptionOr<ReturnType>::hasException(
template<typename ReturnType> inline const Exception& ExceptionOr<ReturnType>::exception() const
{
- ASSERT(!m_wasReleased);
return m_value.error();
}
template<typename ReturnType> inline Exception ExceptionOr<ReturnType>::releaseException()
{
- ASSERT(!std::exchange(m_wasReleased, true));
return WTFMove(m_value.error());
}
template<typename ReturnType> inline const ReturnType& ExceptionOr<ReturnType>::returnValue() const
{
- ASSERT(!m_wasReleased);
return m_value.value();
}
template<typename ReturnType> inline ReturnType ExceptionOr<ReturnType>::releaseReturnValue()
{
- ASSERT(!std::exchange(m_wasReleased, true));
return WTFMove(m_value.value());
}
@@ -185,13 +181,11 @@ inline bool ExceptionOr<void>::hasException() const
inline const Exception& ExceptionOr<void>::exception() const
{
- ASSERT(!m_wasReleased);
return m_value.error();
}
inline Exception ExceptionOr<void>::releaseException()
{
- ASSERT(!std::exchange(m_wasReleased, true));
return WTFMove(m_value.error());
}