summaryrefslogtreecommitdiff
path: root/fxjs/cjs_return.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cjs_return.cpp')
-rw-r--r--fxjs/cjs_return.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/fxjs/cjs_return.cpp b/fxjs/cjs_return.cpp
index 53ac5c0a28..49ad54ab07 100644
--- a/fxjs/cjs_return.cpp
+++ b/fxjs/cjs_return.cpp
@@ -6,12 +6,11 @@
#include "fxjs/cjs_return.h"
-CJS_Return::CJS_Return() : is_error_(false) {}
+CJS_Return::CJS_Return() {}
-CJS_Return::CJS_Return(v8::Local<v8::Value> ret)
- : is_error_(false), return_(ret) {}
+CJS_Return::CJS_Return(v8::Local<v8::Value> ret) : return_(ret) {}
-CJS_Return::CJS_Return(const WideString& err) : is_error_(true), error_(err) {}
+CJS_Return::CJS_Return(const WideString& err) : error_(err) {}
CJS_Return::CJS_Return(JSMessage id) : CJS_Return(JSGetStringFromID(id)) {}