tc39/proposal-async-iteration

One more modified function: FunctionAllocate

spectranaut opened this issue · 2 comments

Hi @domenic,

In AsyncGeneratorFunction line 3:

3. Return ? CreateDynamicFunction(C, NewTarget, "async generator", args). 

FunctionAllocate is called with parameter functionKind = "async generator". FunctionAllocate needs one small modification (this function is currently not in the spec proposal):

2. Assert: functionKind is either "normal", "non-constructor", "generator", "async", or "async generator".

Thanks for the find! Probably best to note this in tc39/ecma262#1066 as that's where the normative text for this has been moved to.

I made this change in tc39/ecma262#1066. I'll go ahead and close this now. Thank you @spectranaut!