Skip to content

Commit

Permalink
remove no-longer-necessary GeneratorStart special case
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkot committed Nov 1, 2023
1 parent 7ae72bc commit e319ccd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Algorithm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ export default class Algorithm extends Builder {
if (completionyThing != null) {
if (returnType?.kind === 'completion') {
containsAnyCompletionyThings = true;
} else if (clause.aoid !== 'GeneratorStart') {
// TODO: remove above exception when the spec is more coherent (https://github.com/tc39/ecma262/pull/2429)
} else {
spec.warn({
type: 'contents',
ruleId: 'completiony-thing-in-non-completion-algorithm',
Expand Down

0 comments on commit e319ccd

Please sign in to comment.