File tree Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 11
11
#define V8_MAJOR_VERSION 6
12
12
#define V8_MINOR_VERSION 4
13
13
#define V8_BUILD_NUMBER 388
14
- #define V8_PATCH_LEVEL 40
14
+ #define V8_PATCH_LEVEL 41
15
15
16
16
// Use 1 for candidates and 0 otherwise.
17
17
// (Boolean macro values are not supported by all preprocessors.)
Original file line number Diff line number Diff line change @@ -1613,6 +1613,7 @@ Handle<JSFunction> Factory::NewFunction(const NewFunctionArgs& args) {
1613
1613
}
1614
1614
Handle<Map> initial_map = NewMap (args.type_ , args.instance_size_ ,
1615
1615
elements_kind, args.inobject_properties_ );
1616
+ result->shared ()->set_expected_nof_properties (args.inobject_properties_ );
1616
1617
// TODO(littledan): Why do we have this is_generator test when
1617
1618
// NewFunctionPrototype already handles finding an appropriately
1618
1619
// shared prototype?
Original file line number Diff line number Diff line change
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 ( ) ;
You can’t perform that action at this time.
0 commit comments