diff options
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(); } }; |
