Skip to content

Commit 1f01112

Browse files
MylesBorinsjasnell
authored andcommitted
deps: patch V8 to 6.6.346.24
PR-URL: #19995 Refs: v8/v8@6.6.346.23...6.6.346.24 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Yang Guo <yangguo@chromium.org> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 0a99cb1 commit 1f01112

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

deps/v8/include/v8-version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#define V8_MAJOR_VERSION 6
1212
#define V8_MINOR_VERSION 6
1313
#define V8_BUILD_NUMBER 346
14-
#define V8_PATCH_LEVEL 23
14+
#define V8_PATCH_LEVEL 24
1515

1616
// Use 1 for candidates and 0 otherwise.
1717
// (Boolean macro values are not supported by all preprocessors.)

deps/v8/src/compiler/js-call-reducer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ Reduction JSCallReducer::ReduceFunctionPrototypeBind(Node* node) {
419419
// runtime otherwise.
420420
Handle<DescriptorArray> descriptors(receiver_map->instance_descriptors(),
421421
isolate());
422-
if (descriptors->length() < 2) return NoChange();
422+
if (descriptors->number_of_descriptors() < 2) return NoChange();
423423
if (descriptors->GetKey(JSFunction::kLengthDescriptorIndex) !=
424424
isolate()->heap()->length_string()) {
425425
return NoChange();
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Copyright 2018 the V8 project authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
// Flags: --allow-natives-syntax
6+
7+
const obj = new class A extends (async function (){}.constructor) {};
8+
delete obj.name;
9+
Number.prototype.__proto__ = obj;
10+
function foo() { return obj.bind(); }
11+
foo();
12+
foo();
13+
%OptimizeFunctionOnNextCall(foo);
14+
foo();

0 commit comments

Comments
 (0)