fix: heritage-arrow-function.js (#4273)

This commit is contained in:
_Kerman 2024-10-21 21:54:30 +08:00 committed by GitHub
parent 0645461999
commit 0add42b556
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
/*---
esid: sec-runtime-semantics-classdefinitionevaluation
description: >
Throw a TypeError exception if IsConstructor(superclass) is false (async arrow)
Throw a TypeError exception if IsConstructor(superclass) is false (arrow)
info: |
Runtime Semantics: ClassDefinitionEvaluation
@ -26,6 +26,6 @@ features: [class]
assert.throws(TypeError, () => {
var C = class extends (async () => {}) {};
var C = class extends (() => {}) {};
});