2015-05-02 20:06:57 +02:00
|
|
|
// Copyright (C) 2014 the V8 project authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
|
|
es6id: 14.5.14_S6.g.i
|
|
|
|
description: >
|
|
|
|
Runtime Semantics: ClassDefinitionEvaluation
|
|
|
|
|
|
|
|
If superclass has a [[FunctionKind]] internal slot whose value is "generator", throw a TypeError exception.
|
2017-10-26 23:05:18 +02:00
|
|
|
features: [generators]
|
2015-05-02 20:06:57 +02:00
|
|
|
---*/
|
|
|
|
function * G() {}
|
|
|
|
|
|
|
|
assert.throws(TypeError, function() {
|
|
|
|
class A extends G {
|
|
|
|
constructor() {
|
|
|
|
super();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|