1 // Copyright 2017 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #include "fxjs/cjs_result.h" 8 CJS_Result()9CJS_Result::CJS_Result() {} 10 CJS_Result(v8::Local<v8::Value> ret)11CJS_Result::CJS_Result(v8::Local<v8::Value> ret) : return_(ret) {} 12 CJS_Result(const WideString & err)13CJS_Result::CJS_Result(const WideString& err) : error_(err) {} 14 CJS_Result(JSMessage id)15CJS_Result::CJS_Result(JSMessage id) : CJS_Result(JSGetStringFromID(id)) {} 16 17 CJS_Result::CJS_Result(const CJS_Result&) = default; 18 19 CJS_Result::~CJS_Result() = default; 20