diff options
Diffstat (limited to 'fxjs/xfa/cjx_desc.cpp')
-rw-r--r-- | fxjs/xfa/cjx_desc.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fxjs/xfa/cjx_desc.cpp b/fxjs/xfa/cjx_desc.cpp index aa8ee2961b..03379cedbc 100644 --- a/fxjs/xfa/cjx_desc.cpp +++ b/fxjs/xfa/cjx_desc.cpp @@ -23,8 +23,9 @@ CJX_Desc::~CJX_Desc() {} CJS_Return CJX_Desc::metadata(CFX_V8* runtime, const std::vector<v8::Local<v8::Value>>& params) { if (params.size() != 0 && params.size() != 1) - return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); - return CJS_Return(runtime->NewString("")); + return CJS_Return::Failure(JSMessage::kParamError); + + return CJS_Return::Success(runtime->NewString("")); } void CJX_Desc::use(CFXJSE_Value* pValue, |