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