Skip to content

Commit 1f76482

Browse files
committed
deps: patch V8 to 6.4.388.41
PR-URL: #18522 Refs: v8/v8@6.4.388.40...6.4.388.41 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent a52b7a2 commit 1f76482

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
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 4
1313
#define V8_BUILD_NUMBER 388
14-
#define V8_PATCH_LEVEL 40
14+
#define V8_PATCH_LEVEL 41
1515

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

deps/v8/src/factory.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,6 +1613,7 @@ Handle<JSFunction> Factory::NewFunction(const NewFunctionArgs& args) {
16131613
}
16141614
Handle<Map> initial_map = NewMap(args.type_, args.instance_size_,
16151615
elements_kind, args.inobject_properties_);
1616+
result->shared()->set_expected_nof_properties(args.inobject_properties_);
16161617
// TODO(littledan): Why do we have this is_generator test when
16171618
// NewFunctionPrototype already handles finding an appropriately
16181619
// shared prototype?
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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 --expose-gc
6+
7+
8+
class Derived extends RegExp {
9+
constructor(a) {
10+
// Syntax Error
11+
const a = 1;
12+
}
13+
}
14+
15+
let o = Reflect.construct(RegExp, [], Derived);
16+
%HeapObjectVerify(o);
17+
// Check that we can properly access lastIndex.
18+
assertEquals(o.lastIndex, 0);
19+
o.lastIndex = 1;
20+
assertEquals(o.lastIndex, 1);
21+
o.lastIndex = 0;
22+
gc();

0 commit comments

Comments
 (0)