From e319ccd613f54336f8ea34631eaa1c2b9024d3e7 Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Tue, 31 Oct 2023 21:45:42 -0700 Subject: [PATCH] remove no-longer-necessary GeneratorStart special case --- src/Algorithm.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Algorithm.ts b/src/Algorithm.ts index 214dd5c0..205edd9e 100644 --- a/src/Algorithm.ts +++ b/src/Algorithm.ts @@ -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',