mirror of https://github.com/tc39/test262.git
fix: heritage-arrow-function.js (#4273)
This commit is contained in:
parent
0645461999
commit
0add42b556
|
@ -4,7 +4,7 @@
|
||||||
/*---
|
/*---
|
||||||
esid: sec-runtime-semantics-classdefinitionevaluation
|
esid: sec-runtime-semantics-classdefinitionevaluation
|
||||||
description: >
|
description: >
|
||||||
Throw a TypeError exception if IsConstructor(superclass) is false (async arrow)
|
Throw a TypeError exception if IsConstructor(superclass) is false (arrow)
|
||||||
info: |
|
info: |
|
||||||
Runtime Semantics: ClassDefinitionEvaluation
|
Runtime Semantics: ClassDefinitionEvaluation
|
||||||
|
|
||||||
|
@ -26,6 +26,6 @@ features: [class]
|
||||||
|
|
||||||
|
|
||||||
assert.throws(TypeError, () => {
|
assert.throws(TypeError, () => {
|
||||||
var C = class extends (async () => {}) {};
|
var C = class extends (() => {}) {};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue