Commit 8974fa04 authored by Frank Tang's avatar Frank Tang Committed by Commit Bot

[Intl] Remove deadcode FormatListCommon

Bug: v8:8438
Change-Id: I7b45f75c790c007d69f61d13f2ac8936b9efb67d
Reviewed-on: https://chromium-review.googlesource.com/c/1331988Reviewed-by: 's avatarSathya Gunasekaran <gsathya@chromium.org>
Commit-Queue: Frank Tang <ftang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57450}
parent c3f543ab
......@@ -378,22 +378,6 @@ Maybe<bool> ToUnicodeStringArray(Isolate* isolate, Handle<JSArray> array,
} // namespace
Maybe<bool> FormatListCommon(Isolate* isolate, Handle<JSArray> list,
uint32_t* length,
std::unique_ptr<icu::UnicodeString[]>& array) {
DCHECK(!list->IsUndefined());
*length = list->GetElementsAccessor()->NumberOfElements(*list);
array.reset(new icu::UnicodeString[*length]);
// ecma402 #sec-createpartsfromlist
// 2. If list contains any element value such that Type(value) is not String,
// throw a TypeError exception.
MAYBE_RETURN(ToUnicodeStringArray(isolate, list, array.get(), *length),
Nothing<bool>());
return Just(true);
}
// ecma402 #sec-formatlist
MaybeHandle<String> JSListFormat::FormatList(Isolate* isolate,
Handle<JSListFormat> format,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment