puppeteer/lib
Andrey Lushnikov 0b9d8a6271
feat: async stacks for all "async" public methods (#3262)
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)
```
2018-09-19 13:54:58 -07:00
..
.eslintrc.js Introduce Eslint to validate style 2017-06-11 01:32:59 -07:00
Browser.js fix(browser): browser closing/disconnecting should abort navigations (#3245) 2018-09-14 19:44:54 +01:00
BrowserFetcher.js fix(browserfetcher): Fix windows fetching (#3256) 2018-09-17 18:15:08 +01:00
Connection.js fix(browser): browser closing/disconnecting should abort navigations (#3245) 2018-09-14 19:44:54 +01:00
Coverage.js fix(coverage): report anonymous scripts with debugger:// urls (#2875) 2018-07-11 21:05:16 -07:00
Dialog.js chore: upgrade to TypeScript 3.0.1 (#3024) 2018-08-06 11:31:33 -07:00
EmulationManager.js chore: upgrade to TypeScript 3.0.1 (#3024) 2018-08-06 11:31:33 -07:00
Errors.js feat: introduce puppeteer/Errors (#3056) 2018-08-09 16:51:12 -07:00
ExecutionContext.js fix: fix null-type bugs (#3137) 2018-08-24 15:17:36 -07:00
externs.d.ts refactor: move Connection to use ConnectionTransport (#3217) 2018-09-07 21:36:16 +01:00
FrameManager.js refactor: move navigation management to FrameManager (#3266) 2018-09-19 13:12:28 -07:00
helper.js feat: async stacks for all "async" public methods (#3262) 2018-09-19 13:54:58 -07:00
Input.js fix: fix null-type bugs (#3137) 2018-08-24 15:17:36 -07:00
Launcher.js refactor: move Connection to use ConnectionTransport (#3217) 2018-09-07 21:36:16 +01:00
Multimap.js chore: upgrade to TypeScript 3.0.1 (#3024) 2018-08-06 11:31:33 -07:00
NetworkManager.js refactor: move navigation management to FrameManager (#3266) 2018-09-19 13:12:28 -07:00
Page.js refactor: move navigation management to FrameManager (#3266) 2018-09-19 13:12:28 -07:00
PipeTransport.js refactor: move Connection to use ConnectionTransport (#3217) 2018-09-07 21:36:16 +01:00
Puppeteer.js refactor: avoid dynamic requires in lib/ folder (#3208) 2018-09-06 20:33:41 +01:00
Target.js fix: fix null-type bugs (#3137) 2018-08-24 15:17:36 -07:00
TaskQueue.js chore: upgrade to TypeScript 3.0.1 (#3024) 2018-08-06 11:31:33 -07:00
Tracing.js Revert "chore(tests): redirect debugError to the output category of tests (#2969)" (#2987) 2018-07-30 16:41:39 -07:00
USKeyboardLayout.js feat(keyboard): Accept codes (#1116) 2017-10-23 12:43:45 -07:00
WebSocketTransport.js refactor: use browser-compliant interface of 'ws' (#3218) 2018-09-11 18:41:28 +01:00
Worker.js refactor: drop object factory from execution context (#3099) 2018-08-16 16:16:27 -07:00