Website Summary Files Commits Branches @commit @diff @stats
path: root / JSImpl / src / ASTInterpreter.cpp
diff options
context:
space:
mode:
1 files changed, 3 insertions, 0 deletions
-rw-r--r--JSImpl/src/ASTInterpreter.cpp3
diff --git a/JSImpl/src/ASTInterpreter.cpp b/JSImpl/src/ASTInterpreter.cpp
index 138d94c..04f949f 100644
--- a/JSImpl/src/ASTInterpreter.cpp
+++ b/JSImpl/src/ASTInterpreter.cpp
@@ -212,6 +212,9 @@ void ASTInterpreter::Visit(BinaryExpression* e) {
case TokenType::EqualEqual:
m_Evaluation.push_back(fabs(left - right) < 0.0001);
break;
+ case TokenType::BangEqual:
+ m_Evaluation.push_back(fabs(left - right) > 0.0001);
+ break;
case TokenType::Equal:
{
LValueExtractor extractor(this);