diff options
Diffstat (limited to 'deps/v8/test/mjsunit/regress/regress-crbug-801627.js')
-rw-r--r-- | deps/v8/test/mjsunit/regress/regress-crbug-801627.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/regress/regress-crbug-801627.js b/deps/v8/test/mjsunit/regress/regress-crbug-801627.js new file mode 100644 index 0000000000..0e51fff2b1 --- /dev/null +++ b/deps/v8/test/mjsunit/regress/regress-crbug-801627.js @@ -0,0 +1,24 @@ +// Copyright 2018 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Flags: --allow-natives-syntax --enable-slow-asserts + +class Base { + constructor() { + this.x = 1; + } +} + +class Derived extends Base { + constructor() { + super(); + } +} + +// Feed a bound function as new.target +// to the profiler, so HeapObjectMatcher +// can find it. +Reflect.construct(Derived, [], Object.bind()); +%OptimizeFunctionOnNextCall(Derived); +new Derived(); |