Website Summary Files Commits Branches @commit @diff @stats
path: root / JSImpl / src / ASTInterpreter.cpp
diff options
context:
space:
mode:
Commit113598bd4636b65720df6af87ea5a94661907c8c (patch)
Author
 martin dobrev <martindobrev0@gmail.com>
2018-11-03 15:01:15 +0200
Committer
 martin dobrev <martindobrev0@gmail.com>
2018-11-03 15:01:15 +0200
Files74c8db4ea2726518ac133dea79b7ad32b6576692 /JSImpl/src/ASTInterpreter.cpp
IPL-113598bd4636b65720df6af87ea5a94661907c8c.tar
IPL-113598bd4636b65720df6af87ea5a94661907c8c.tar.gz
IPL-113598bd4636b65720df6af87ea5a94661907c8c.zip
Parent6c2f7812f65b4a5c60f85297d1bc4f918e32936e (diff)
Add a couple more tests in ParserTests.
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);