Index: src/extensions/experimental/datetime-format.cc |
diff --git a/src/extensions/experimental/datetime-format.cc b/src/extensions/experimental/datetime-format.cc |
index 7f46302973b9eba57e2442fffa4b8831095a6893..94a29ac0ae0f18a61e04dd01752c5da8798ddc83 100644 |
--- a/src/extensions/experimental/datetime-format.cc |
+++ b/src/extensions/experimental/datetime-format.cc |
@@ -135,7 +135,7 @@ v8::Handle<v8::Value> DateTimeFormat::GetMonths(const v8::Arguments& args) { |
v8::Handle<v8::Value> DateTimeFormat::GetWeekdays(const v8::Arguments& args) { |
icu::SimpleDateFormat* date_format = UnpackDateTimeFormat(args.Holder()); |
if (!date_format) { |
- ThrowUnexpectedObjectError(); |
+ return ThrowUnexpectedObjectError(); |
} |
const icu::DateFormatSymbols* symbols = date_format->getDateFormatSymbols(); |