Skip to content

Commit

Permalink
fix: heritage-arrow-function.js (tc39#4273)
Browse files Browse the repository at this point in the history
  • Loading branch information
kermanx authored Oct 21, 2024
1 parent 0645461 commit 0add42b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/language/expressions/class/heritage-arrow-function.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -26,6 +26,6 @@ features: [class]


assert.throws(TypeError, () => {
var C = class extends (async () => {}) {};
var C = class extends (() => {}) {};
});

0 comments on commit 0add42b

Please sign in to comment.