OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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 class SuperClass { | |
6 } | |
7 | |
8 class SubClass extends SuperClass { | |
9 constructor() { | |
10 super(); | |
11 this.doSomething(); | |
12 } | |
13 doSomething() { | |
14 } | |
15 } | |
16 | |
17 for (var i=0; i<50000; i++) { | |
Michael Starzinger
2016/09/06 11:11:22
I assume this loop is here to trigger optimization
rmcilroy
2016/09/06 11:27:21
Good point, done.
| |
18 let inst = new SubClass(); | |
19 } | |
OLD | NEW |