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 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.)
Original file line number Diff line number Diff 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?
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