diff options
Diffstat (limited to 'fpdfsdk/jsapi')
-rw-r--r-- | fpdfsdk/jsapi/fxjs_v8.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/jsapi/fxjs_v8.cpp b/fpdfsdk/jsapi/fxjs_v8.cpp index db64eee974..c66cf91b56 100644 --- a/fpdfsdk/jsapi/fxjs_v8.cpp +++ b/fpdfsdk/jsapi/fxjs_v8.cpp @@ -807,7 +807,7 @@ CFX_WideString FXJS_ToString(v8::Isolate* pIsolate, return L""; v8::Local<v8::Context> context = pIsolate->GetCurrentContext(); v8::String::Utf8Value s(pValue->ToString(context).ToLocalChecked()); - return CFX_WideString::FromUTF8(*s, s.length()); + return CFX_WideString::FromUTF8(CFX_ByteStringC(*s, s.length())); } v8::Local<v8::Array> FXJS_ToArray(v8::Isolate* pIsolate, |