summaryrefslogtreecommitdiff
path: root/fxjs/cjs_result.cpp
blob: 92f2b0bb827af7bc5acadb09fa5abacb7d0b56a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2017 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com

#include "fxjs/cjs_result.h"

CJS_Result::CJS_Result() {}

CJS_Result::CJS_Result(v8::Local<v8::Value> ret) : return_(ret) {}

CJS_Result::CJS_Result(const WideString& err) : error_(err) {}

CJS_Result::CJS_Result(JSMessage id) : CJS_Result(JSGetStringFromID(id)) {}

CJS_Result::CJS_Result(const CJS_Result&) = default;

CJS_Result::~CJS_Result() = default;