Website Summary Files Commits Branches @commit @diff @stats
path: root / JSImpl / src / ASTInterpreter.cpp
diff options
context:
space:
mode:
Commitf4598a0e6deb5fb1a63b4fc125804aa85ca818bd (patch)
Author
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2020-11-09 22:08:58 +0200
Committer
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2020-11-09 22:08:58 +0200
Files99816280741e7e6d6a8460ed216484b84fd4aefc /JSImpl/src/ASTInterpreter.cpp
IPL-f4598a0e6deb5fb1a63b4fc125804aa85ca818bd.tar
IPL-f4598a0e6deb5fb1a63b4fc125804aa85ca818bd.tar.gz
IPL-f4598a0e6deb5fb1a63b4fc125804aa85ca818bd.zip
Parentfe67e5fb5ce2217a1219f0420a011487b4475761 (diff)
Evaluate empty strings as false
1 files changed, 2 insertions, 2 deletions
-rw-r--r--JSImpl/src/ASTInterpreter.cpp4
diff --git a/JSImpl/src/ASTInterpreter.cpp b/JSImpl/src/ASTInterpreter.cpp
index 9503494..f550da9 100644
--- a/JSImpl/src/ASTInterpreter.cpp
+++ b/JSImpl/src/ASTInterpreter.cpp
@@ -26,9 +26,9 @@ namespace
{
return d != 0.0;
}
- bool operator()(const IPLString&) const
+ bool operator()(const IPLString& s) const
{
- return true;
+ return !s.empty();
}
};