diff --git a/src/api/api.cc b/src/api/api.cc index caa930f267..10a1663b9d 100644 --- a/src/api/api.cc +++ b/src/api/api.cc @@ -11315,12 +11315,9 @@ RegisterState::RegisterState() : pc(nullptr), sp(nullptr), fp(nullptr), lr(nullptr) {} RegisterState::~RegisterState() = default; -RegisterState::RegisterState(const RegisterState& other) V8_NOEXCEPT { - *this = other; -} +RegisterState::RegisterState(const RegisterState& other) { *this = other; } -RegisterState& RegisterState::operator=(const RegisterState& other) - V8_NOEXCEPT { +RegisterState& RegisterState::operator=(const RegisterState& other) { if (&other != this) { pc = other.pc; sp = other.sp;