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_return.h" 8 CJS_Return(bool result)9CJS_Return::CJS_Return(bool result) : is_error_(!result) {} 10 CJS_Return(const WideString & err)11CJS_Return::CJS_Return(const WideString& err) : is_error_(true), error_(err) {} 12 CJS_Return(v8::Local<v8::Value> ret)13CJS_Return::CJS_Return(v8::Local<v8::Value> ret) 14 : is_error_(false), return_(ret) {} 15 16 CJS_Return::CJS_Return(const CJS_Return&) = default; 17 18 CJS_Return::~CJS_Return() = default; 19