Home | History | Annotate | Download | only in fxjs
      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 
      9 CJS_Return::CJS_Return(bool result) : is_error_(!result) {}
     10 
     11 CJS_Return::CJS_Return(const WideString& err) : is_error_(true), error_(err) {}
     12 
     13 CJS_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