Linux Compat and some updated PARANOIA code

This was SVN commit r1189.
This commit is contained in:
olsner
2004-09-22 15:20:58 +00:00
parent ab7b542c20
commit df1b502bbd
8 changed files with 70 additions and 36 deletions
+3 -1
View File
@@ -322,7 +322,9 @@ CStrW ScriptingHost::ValueToUCString( const jsval value )
if (string == NULL)
throw PSERROR_Scripting_ConversionFailed();
return CStrW(JS_GetStringChars(string), JS_GetStringLength(string));
jschar *strptr=JS_GetStringChars(string);
uint length=JS_GetStringLength(string);
return CStrW(std::wstring(strptr, strptr+length));
}
jsval ScriptingHost::UCStringToValue(const utf16string &str)