aString.Assign(JS_GetStringChars(jsstring));
aString.Assign(NS_REINTERPRET_CAST(const PRUnichar*, JS_GetStringChars(jsstring)));
void ConvertJSValToStr(nsString&  aString,                      JSContext* aContext,                      jsval      aValue){  JSString *jsstring;  if((jsstring = JS_ValueToString(aContext, aValue)) != nsnull)  {    aString.Assign(JS_GetStringChars(jsstring));    if (aString.EqualsIgnoreCase("null"))    {        aString.Truncate();    }  }  else  {    aString.Truncate();  }}