| Index: fpdfsdk/src/javascript/app.cpp
|
| diff --git a/fpdfsdk/src/javascript/app.cpp b/fpdfsdk/src/javascript/app.cpp
|
| index 136b544142ebb47890d8243507d6454e9d6ffd61..aff491a0841a446ea6f2fd440199b7034a3f34a7 100644
|
| --- a/fpdfsdk/src/javascript/app.cpp
|
| +++ b/fpdfsdk/src/javascript/app.cpp
|
| @@ -304,19 +304,12 @@ FX_BOOL app::alert(IFXJS_Context* cc,
|
| if (swMsg == L"") {
|
| CJS_Array carray(isolate);
|
| if (params[0].ConvertToArray(carray)) {
|
| - int iLenth = carray.GetLength();
|
| + int iLength = carray.GetLength();
|
| CJS_Value* pValue = new CJS_Value(isolate);
|
| - // if (iLenth == 1)
|
| - // pValue = new
|
| - // CJS_Value(isolate);
|
| - // else if (iLenth > 1)
|
| - // pValue = new
|
| - // CJS_Value[iLenth];
|
| -
|
| - for (int i = 0; i < iLenth; i++) {
|
| + for (int i = 0; i < iLength; ++i) {
|
| carray.GetElement(i, *pValue);
|
| swMsg += (*pValue).ToCFXWideString();
|
| - if (i < iLenth - 1)
|
| + if (i < iLength - 1)
|
| swMsg += L", ";
|
| }
|
|
|
|
|