This is working as intended. The stack trace after await is missing because 
the async function is being resumed from the microtask queue.

On Tuesday, January 24, 2017 at 5:03:36 PM UTC+1, Boris Okunskiy wrote:
>
> Stack traces from async functions are different before and after await:
>
> main();
>
> async function main() {
>     console.log('stack #1', new Error().stack);
>     await one();
>     console.log('stack #2', new Error().stack);
> }
>
> async function one() {
>     // noop
> }
>
> In this example stack #1 contains call site (line 1), but stack #2 does 
> not.
>
> Reproducible in Chrome 55.0.2883.95 and Node 7.4.0
>
>

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to