Change length from 0 to 2 for Intl.DisplayNames

Bug: v8:10733
Change-Id: I417c19b13ecc3de1e7a33ed31e4eb0129eabe7e8
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2309113
Reviewed-by: Shu-yu Guo <syg@chromium.org>
Commit-Queue: Frank Tang <ftang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#68952}
This commit is contained in:
Frank Tang 2020-07-20 16:17:13 -07:00 committed by Commit Bot
parent 6b4e55a892
commit 583f5ecc23
2 changed files with 4 additions and 1 deletions

View File

@ -3033,7 +3033,7 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
isolate(), intl, "DisplayNames", JS_DISPLAY_NAMES_TYPE,
JSDisplayNames::kHeaderSize, 0, factory->the_hole_value(),
Builtins::kDisplayNamesConstructor);
display_names_fun->shared().set_length(0);
display_names_fun->shared().set_length(2);
display_names_fun->shared().DontAdaptArguments();
InstallWithIntrinsicDefaultProto(
isolate(), display_names_fun,

View File

@ -457,6 +457,9 @@
# https://bugs.chromium.org/p/v8/issues/detail?id=7472
'intl402/NumberFormat/currency-digits': [FAIL],
# https://github.com/tc39/test262/pull/2711
'intl402/DisplayNames/length': [FAIL],
# https://bugs.chromium.org/p/v8/issues/detail?id=7831
'language/statements/generators/generator-created-after-decl-inst': [FAIL],
'language/expressions/generators/generator-created-after-decl-inst': [FAIL],