From f4598a0e6deb5fb1a63b4fc125804aa85ca818bd Mon Sep 17 00:00:00 2001 From: Dimitar Trendafilov Date: Mon, 9 Nov 2020 22:08:58 +0200 Subject: Evaluate empty strings as false --- JSImpl/src/ASTInterpreter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'JSImpl/src/ASTInterpreter.cpp') 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(); } }; -- cgit v1.3.1-23-gd82d