mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
0b9d8a6271
This patch traces all public async methods and wraps them in a helper method that tags the sync stack trace. Later on, if the method call throws an exception, we add a captured stack trace to the original stack trace with the "--ASYNC--" heading. An example of a stack trace: ``` Error: net::ERR_ABORTED at http://localhost:8907/empty.html at navigate (/Users/lushnikov/prog/puppeteer/lib/Page.js:622:37) at process._tickCallback (internal/process/next_tick.js:68:7) -- ASYNC -- at Page.<anonymous> (/Users/lushnikov/prog/puppeteer/lib/helper.js:147:27) at fit (/Users/lushnikov/prog/puppeteer/test/page.spec.js:546:18) at process._tickCallback (internal/process/next_tick.js:68:7) ``` |
||
---|---|---|
.. | ||
.eslintrc.js | ||
Browser.js | ||
BrowserFetcher.js | ||
Connection.js | ||
Coverage.js | ||
Dialog.js | ||
EmulationManager.js | ||
Errors.js | ||
ExecutionContext.js | ||
externs.d.ts | ||
FrameManager.js | ||
helper.js | ||
Input.js | ||
Launcher.js | ||
Multimap.js | ||
NetworkManager.js | ||
Page.js | ||
PipeTransport.js | ||
Puppeteer.js | ||
Target.js | ||
TaskQueue.js | ||
Tracing.js | ||
USKeyboardLayout.js | ||
WebSocketTransport.js | ||
Worker.js |