diff --git a/Libraries/LibJS/AST.cpp b/Libraries/LibJS/AST.cpp index 2b6ede9ba0..875a53633d 100644 --- a/Libraries/LibJS/AST.cpp +++ b/Libraries/LibJS/AST.cpp @@ -186,7 +186,7 @@ Value UnaryExpression::execute(Interpreter& interpreter) const { auto lhs_result = m_lhs->execute(interpreter); switch (m_op) { - case UnaryOp::BitNot: + case UnaryOp::BitwiseNot: return bitwise_not(lhs_result); case UnaryOp::Not: return Value(!lhs_result.to_boolean()); @@ -297,7 +297,7 @@ void UnaryExpression::dump(int indent) const { const char* op_string = nullptr; switch (m_op) { - case UnaryOp::BitNot: + case UnaryOp::BitwiseNot: op_string = "~"; break; case UnaryOp::Not: diff --git a/Libraries/LibJS/AST.h b/Libraries/LibJS/AST.h index f2ec48a393..841ea7f4a3 100644 --- a/Libraries/LibJS/AST.h +++ b/Libraries/LibJS/AST.h @@ -304,7 +304,7 @@ private: }; enum class UnaryOp { - BitNot, + BitwiseNot, Not, };