mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibJS: Rename BitNot -> BitwiseNot to match other bitwise operators
This commit is contained in:
parent
3389021291
commit
20a0fc5576
Notes:
sideshowbarker
2024-07-19 08:18:35 +09:00
Author: https://github.com/0xtechnobabble Commit: https://github.com/SerenityOS/serenity/commit/20a0fc5576b Pull-request: https://github.com/SerenityOS/serenity/pull/1456
2 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
|
@ -304,7 +304,7 @@ private:
|
|||
};
|
||||
|
||||
enum class UnaryOp {
|
||||
BitNot,
|
||||
BitwiseNot,
|
||||
Not,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue