Skip to content

Commit

Permalink
ACTIONSCRIPT: Add negate condition for objects and functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Nostritius committed Mar 18, 2019
1 parent 9e89866 commit 2cf0794
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/aurora/actionscript/variable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ bool Variable::operator!() {
return !_value.number;
case kTypeBoolean:
return !_value.boolean;
case kTypeObject:
return (_value.object->getSlots().empty() && !isFunction()) || (!_value.object->getSlots().empty() && isFunction());
default:
return true;
}
Expand Down

0 comments on commit 2cf0794

Please sign in to comment.