File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
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 6
13
13
#define V8_BUILD_NUMBER 346
14
- #define V8_PATCH_LEVEL 23
14
+ #define V8_PATCH_LEVEL 24
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 @@ -419,7 +419,7 @@ Reduction JSCallReducer::ReduceFunctionPrototypeBind(Node* node) {
419
419
// runtime otherwise.
420
420
Handle<DescriptorArray> descriptors (receiver_map->instance_descriptors (),
421
421
isolate ());
422
- if (descriptors->length () < 2 ) return NoChange ();
422
+ if (descriptors->number_of_descriptors () < 2 ) return NoChange ();
423
423
if (descriptors->GetKey (JSFunction::kLengthDescriptorIndex ) !=
424
424
isolate ()->heap ()->length_string ()) {
425
425
return NoChange ();
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
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 ( ) ;
You can’t perform that action at this time.
0 commit comments