2015-05-02 20:06:57 +02:00
|
|
|
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
|
|
es6id: 14.5.1
|
|
|
|
description: >
|
|
|
|
ClassElement : MethodDefinition
|
|
|
|
|
|
|
|
It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true.
|
|
|
|
|
|
|
|
(GeneratorMethod)
|
|
|
|
|
2016-01-31 00:57:28 +01:00
|
|
|
negative:
|
2017-12-03 06:06:42 +01:00
|
|
|
phase: parse
|
2016-01-31 00:57:28 +01:00
|
|
|
type: SyntaxError
|
2017-10-26 23:05:18 +02:00
|
|
|
features: [generators]
|
2015-05-02 20:06:57 +02:00
|
|
|
---*/
|
2017-04-29 22:31:08 +02:00
|
|
|
|
|
|
|
throw "Test262: This statement should not be evaluated.";
|
2015-05-02 20:06:57 +02:00
|
|
|
class A {
|
|
|
|
* method() {
|
|
|
|
super();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|