| Index: xfa/fxjse/value.h
|
| diff --git a/xfa/fxjse/value.h b/xfa/fxjse/value.h
|
| index da4976b53cb146f7d2fd6f7ac8a2c3c241acbc85..d74fc325dd967913c7ee1161f4c3825f9635a53b 100644
|
| --- a/xfa/fxjse/value.h
|
| +++ b/xfa/fxjse/value.h
|
| @@ -172,14 +172,17 @@ class CFXJSE_Value {
|
| v8::Local<v8::Value>::New(m_pIsolate, m_hValue);
|
| return static_cast<int32_t>(hValue->NumberValue());
|
| }
|
| - V8_INLINE void ToString(CFX_ByteString& szStrOutput) const {
|
| + V8_INLINE CFX_ByteString ToString() const {
|
| ASSERT(!m_hValue.IsEmpty());
|
| CFXJSE_ScopeUtil_IsolateHandleRootContext scope(m_pIsolate);
|
| v8::Local<v8::Value> hValue =
|
| v8::Local<v8::Value>::New(m_pIsolate, m_hValue);
|
| v8::Local<v8::String> hString = hValue->ToString();
|
| v8::String::Utf8Value hStringVal(hString);
|
| - szStrOutput = *hStringVal;
|
| + return CFX_ByteString(*hStringVal);
|
| + }
|
| + V8_INLINE CFX_WideString ToWideString() const {
|
| + return CFX_WideString::FromUTF8(ToString().AsStringC());
|
| }
|
| CFXJSE_HostObject* ToHostObject(CFXJSE_Class* lpClass) const;
|
|
|
|
|