Status: Accepted
Owner: [email protected]
Labels: Type-Bug Priority-Medium OS-All HW-All

New issue 1602 by [email protected]: DateTimeFormat::GetWeekdays bad "date_format" argument check does not return error leading to a NULL ptr
http://code.google.com/p/v8/issues/detail?id=1602

Rero:
new (new v8Locale();.createDateTimeFormat()).getWeekdays;

http://code.google.com/p/v8/source/browse/trunk/src/extensions/experimental/datetime-format.cc#138

v8::Handle<v8::Value> DateTimeFormat::GetWeekdays(const v8::Arguments& args) {
  icu::SimpleDateFormat* date_format = UnpackDateTimeFormat(args.Holder());
  if (!date_format) {
    ThrowUnexpectedObjectError();
  }

This should be:
    return ThrowUnexpectedObjectError();



--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to