Rename WideString::FromLocal() to FromDefANSI().
Be consistent with WideString::ToDefANSI(), which is its inverse
operation.
Change-Id: I98392e33cc131fa2ab2352e879c0741ee906b581
Reviewed-on: https://pdfium-review.googlesource.com/c/45810
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/fxjs/cjs_global.cpp b/fxjs/cjs_global.cpp
index 6589f70..176872f 100644
--- a/fxjs/cjs_global.cpp
+++ b/fxjs/cjs_global.cpp
@@ -254,7 +254,7 @@
return CJS_Result::Success(pRuntime->NewBoolean(pData->bData));
case CFX_Value::DataType::STRING:
return CJS_Result::Success(pRuntime->NewString(
- WideString::FromLocal(pData->sData.AsStringView()).AsStringView()));
+ WideString::FromDefANSI(pData->sData.AsStringView()).AsStringView()));
case CFX_Value::DataType::OBJECT:
return CJS_Result::Success(
v8::Local<v8::Object>::New(pRuntime->GetIsolate(), pData->pData));