Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 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: --harmony-classes --min-preparse-length=0 | |
| 6 | |
| 7 'use strict'; | |
| 8 | |
| 9 class Base { | |
| 10 m() { | |
| 11 return 42; | |
| 12 } | |
| 13 } | |
| 14 | |
| 15 class Derived extends Base { | |
| 16 m() { | |
| 17 return super.m(); | |
| 18 } | |
| 19 } | |
| 20 | |
| 21 assertEquals(42, new Derived().m()); | |
| OLD | NEW |