puppeteer/lib
Andrey Lushnikov 0b94fa70eb
chore: stop using console.assert everywhere (#2646)
Since Node 10, `console.assert` no longer throws an AssertionError.
(This is generally good since it aligns Node.js with Browsers.)

This patch migrates all usages of `console.assert` in our codebase.
- All the `lib/` and testing code is migrated onto a handmade `assert`
function. This is to make Puppeteer transpilation / bundling easier.
- All the tooling is switched to use Node's `assert` module.

Fixes #2547.
2018-05-31 16:53:51 -07:00
..
.eslintrc.js Introduce Eslint to validate style 2017-06-11 01:32:59 -07:00
Browser.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
BrowserFetcher.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
Connection.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
Coverage.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
Dialog.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
ElementHandle.js feat(elementhandle): add elementHandle.$$eval method (#2589) 2018-05-25 16:56:51 -07:00
EmulationManager.js chore(types): type check the rest of the protocol (#2328) 2018-04-07 17:58:52 -07:00
ExecutionContext.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
externs.d.ts feat(BrowserContext): introduce Browser Contexts. (#2523) 2018-05-10 13:26:08 -07:00
FrameManager.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
helper.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
Input.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
Launcher.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
Multimap.js chore: Use Typescript to lint JSDoc annotations (#986) 2017-10-09 22:31:40 -07:00
NavigatorWatcher.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
NetworkManager.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
Page.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
Pipe.js feat(appMode): support pipes for appMode (#2032) 2018-02-14 17:51:29 -08:00
Puppeteer.js chore(types): upgrade to TypeScript 2.8.1 (#2304) 2018-04-04 14:06:21 -07:00
Target.js feat(Target): Pass through "background_page" types (#2439) (#2493) 2018-05-16 14:36:34 -07:00
TaskQueue.js chore: refactor Browser.js into seperate files (#2097) 2018-02-26 12:10:06 -08:00
Tracing.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
USKeyboardLayout.js feat(keyboard): Accept codes (#1116) 2017-10-23 12:43:45 -07:00
Worker.js fix(workers): workaround worker execution context flakiness (#2596) 2018-05-30 18:08:27 -07:00