Bug 1316098 - Optimize out result object allocation for await/return in async function.

Tag #1287
This commit is contained in:
Gaming4JC 2019-12-13 20:59:32 -05:00 • committed by Roy Tam
commit c9f1fa2cda
10 changed files with 39 additions and 138 deletions

View file

@ -110,8 +110,8 @@ resumption value has one of the following forms:
the `new` expression returns the frame's `this` value. Similarly, if
the function is the constructor for a subclass, then a non-object
value may result in a TypeError.
If the frame is a generator or async function, then <i>value</i> must
conform to the iterator protocol: it must be a non-proxy object of the form
If the frame is a generator function, then <i>value</i> must conform to the
iterator protocol: it must be a non-proxy object of the form
<code>{ done: <i>boolean</i>, value: <i>v</i> }</code>, where
both `done` and `value` are ordinary properties.