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.