nsCvrtJSValToStr(b0, cx, argv[0]); nsCvrtJSValToStr(b1, cx, argv[1]);
ConvertJSValToStr(b0, cx, argv[0]); ConvertJSValToStr(b1, cx, argv[1]);
WinProfileGetString(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval){  nsWinProfile *nativeThis = (nsWinProfile*)JS_GetPrivate(cx, obj);  nsString     nativeRet;  nsAutoString b0;  nsAutoString b1;  *rval = JSVAL_NULL;  // If there's no private data, this must be the prototype, so ignore  if(nsnull == nativeThis)  {    return JS_TRUE;  }  if(argc >= 2)                               {    //  public int getString ( String section,    //                         String key);    nsCvrtJSValToStr(b0, cx, argv[0]);    nsCvrtJSValToStr(b1, cx, argv[1]);    nativeThis->getString(b0, b1, &nativeRet);    nsCvrtStrToJSVal(nativeRet, cx, rval);  }  else  {    JS_ReportError(cx, "WinProfile.getString() parameters error");    return JS_FALSE;  }  return JS_TRUE;}