One more modified function: FunctionAllocate
spectranaut opened this issue · 2 comments
spectranaut commented
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".
domenic commented
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.
bterlson commented
I made this change in tc39/ecma262#1066. I'll go ahead and close this now. Thank you @spectranaut!