From 39f02759cb59efea1ebea37c41ab991e5bd71f6c Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Wed, 14 Nov 2007 09:56:46 -0800 Subject: - Fixing NullHandleException in FreezeScript when a script attempts to access the 'length' member of a string value. - Adding support for string concatenation using the '+' operator. - Updating the FreezeScript/dbmap test to include string functions. --- cpp/src/FreezeScript/Data.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'cpp/src/FreezeScript/Data.cpp') diff --git a/cpp/src/FreezeScript/Data.cpp b/cpp/src/FreezeScript/Data.cpp index cc51a8a2d0e..1fa91b65209 100644 --- a/cpp/src/FreezeScript/Data.cpp +++ b/cpp/src/FreezeScript/Data.cpp @@ -1186,6 +1186,7 @@ void FreezeScript::StringData::setValue(const string& v) { _value = v; + _length = IntegerDataPtr::dynamicCast(_factory->createInteger(static_cast(_value.size()), true)); } // -- cgit v1.2.3