Reland "[builtins] set DataView.length to 1"
This is a reland of a229e12101
The original commit broke a layout test in Blink. The test in Blink
has been marked to be skipped and will be updated once this patch
lands.
See https://chromium-review.googlesource.com/c/chromium/src/+/1097455
Original change's description:
> [builtins] set DataView.length to 1
>
> Refs: https://github.com/tc39/ecma262/pull/1131
> Test: test262/built-ins/DataView/length
> Bug: v8:7816
> Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng
> Change-Id: I66a06734bd32cd2043a8d04728b2185f6093bd69
> Reviewed-on: https://chromium-review.googlesource.com/1094980
> Reviewed-by: Sathya Gunasekaran <gsathya@chromium.org>
> Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#53649}
Bug: v8:7816
Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng
Change-Id: If63be80523a68d3a2b515fe1d55a243d2dd2a9b2
Reviewed-on: https://chromium-review.googlesource.com/1097568
Reviewed-by: Sathya Gunasekaran <gsathya@chromium.org>
Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53682}
This commit is contained in:
parent
da03262e4c
commit
f892a76f4c
@ -3111,7 +3111,7 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
|
||||
Builtins::kDataViewConstructor);
|
||||
InstallWithIntrinsicDefaultProto(isolate_, data_view_fun,
|
||||
Context::DATA_VIEW_FUN_INDEX);
|
||||
data_view_fun->shared()->set_length(3);
|
||||
data_view_fun->shared()->set_length(1);
|
||||
data_view_fun->shared()->DontAdaptArguments();
|
||||
|
||||
// Setup %DataViewPrototype%.
|
||||
|
7
test/mjsunit/es6/dataview-length.js
Normal file
7
test/mjsunit/es6/dataview-length.js
Normal file
@ -0,0 +1,7 @@
|
||||
// Copyright 2018 the V8 project authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
"use strict";
|
||||
|
||||
assertEquals(DataView.length, 1);
|
@ -493,9 +493,6 @@
|
||||
# https://bugs.chromium.org/p/v8/issues/detail?id=7815
|
||||
'built-ins/AsyncGeneratorPrototype/constructor': [FAIL],
|
||||
|
||||
# https://bugs.chromxoium.org/p/v8/issues/detail?id=7816
|
||||
'built-ins/DataView/length': [FAIL],
|
||||
|
||||
# https://bugs.chromium.org/p/v8/issues/detail?id=7817
|
||||
'language/expressions/async-arrow-function/await-as-param-ident-nested-arrow-parameter-position': [FAIL],
|
||||
'language/expressions/async-arrow-function/await-as-param-nested-arrow-parameter-position': [FAIL],
|
||||
|
Loading…
Reference in New Issue
Block a user