Commit a229e121 authored by Joyee Cheung's avatar Joyee Cheung Committed by Commit Bot

[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/1094980Reviewed-by: 's avatarSathya Gunasekaran <gsathya@chromium.org>
Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53649}
parent bcb4fbd4
...@@ -3111,7 +3111,7 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, ...@@ -3111,7 +3111,7 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
Builtins::kDataViewConstructor); Builtins::kDataViewConstructor);
InstallWithIntrinsicDefaultProto(isolate_, data_view_fun, InstallWithIntrinsicDefaultProto(isolate_, data_view_fun,
Context::DATA_VIEW_FUN_INDEX); Context::DATA_VIEW_FUN_INDEX);
data_view_fun->shared()->set_length(3); data_view_fun->shared()->set_length(1);
data_view_fun->shared()->DontAdaptArguments(); data_view_fun->shared()->DontAdaptArguments();
// Setup %DataViewPrototype%. // Setup %DataViewPrototype%.
......
// 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);
...@@ -495,9 +495,6 @@ ...@@ -495,9 +495,6 @@
# https://bugs.chromium.org/p/v8/issues/detail?id=7815 # https://bugs.chromium.org/p/v8/issues/detail?id=7815
'built-ins/AsyncGeneratorPrototype/constructor': [FAIL], '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 # 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-ident-nested-arrow-parameter-position': [FAIL],
'language/expressions/async-arrow-function/await-as-param-nested-arrow-parameter-position': [FAIL], 'language/expressions/async-arrow-function/await-as-param-nested-arrow-parameter-position': [FAIL],
......
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