You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[MERGE #6172@rhuanjl] async generator object method and minor misc
Merge pull request #6172 from rhuanjl:asyncGeneratorFixes
I missed async generator properties of objects when updating the parser in #5834
This PR:
1. fixes that omission enabling async generator properties of objects when async generators are enabled
2. adds tests for a couple of async generator syntax options that were not currently tested (including for point 1)
3. updates the async generator continue methods to use the new PerformPromiseThen from #6163 - this has no observable effect but improves internal consistency
@zenparsing please could you take a look at this?
// 10. Remove asyncContext from the execution context stack and restore the execution context that is at the top of the execution context stack as the running execution context.
10265
10266
// 11. Set the code evaluation state of asyncContext such that when evaluation is resumed with a Completion completion, the following steps of the algorithm that invoked Await will be performed, with completion available.
assert.areEqual(asyncGeneratorFunctionPrototype,Object.getPrototypeOf(instance.cagf),"Async generator class method should have the same prototype as async generator function");
230
+
assert.areEqual(asyncGeneratorFunctionPrototype,Object.getPrototypeOf(cla.scagf),"Async generator class static method should have the same prototype as async generator function");
231
+
assert.areEqual(asyncGeneratorFunctionPrototype,Object.getPrototypeOf(obj.oagf),"Async generator object method should have the same prototype as async generator function");
0 commit comments