diff options
| Commit | f4598a0e6deb5fb1a63b4fc125804aa85ca818bd (patch) | |
|---|---|---|
| Author | 2020-11-09 22:08:58 +0200 | |
| Committer | 2020-11-09 22:08:58 +0200 | |
| Files | 99816280741e7e6d6a8460ed216484b84fd4aefc /JSImpl/src | |
| IPL-f4598a0e6deb5fb1a63b4fc125804aa85ca818bd.tar IPL-f4598a0e6deb5fb1a63b4fc125804aa85ca818bd.tar.gz IPL-f4598a0e6deb5fb1a63b4fc125804aa85ca818bd.zip | ||
| Parent | fe67e5fb5ce2217a1219f0420a011487b4475761 (diff) | |
Evaluate empty strings as false
1 files changed, 2 insertions, 2 deletions
| -rw-r--r-- | JSImpl/src/ASTInterpreter.cpp | 4 |
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(); } }; |
