96220730e6
Also, emit a NewWithSpread bytecode for CallNew AST nodes where possible, rather than desugaring in the parser.
BUG=v8:5511
Review-Url: https://codereview.chromium.org/2629363002
Cr-Original-Commit-Position: refs/heads/master@{#42455}
Committed: 4bae43471d
Review-Url: https://codereview.chromium.org/2629363002
Cr-Commit-Position: refs/heads/master@{#42590}
19 lines
374 B
JavaScript
19 lines
374 B
JavaScript
// Copyright 2017 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: --es-staging
|
|
|
|
class BaseClass {
|
|
method() {
|
|
return 1;
|
|
}
|
|
}
|
|
class SubClass extends BaseClass {
|
|
method(...args) {
|
|
return super.method(...args);
|
|
}
|
|
}
|
|
var a = new SubClass();
|
|
a.method();
|