puppeteer/phantom_shim
JoelEinbinder bbde8fd1c2 page.evaluate takes a string in addition to function (#135)
This patch improves on page.evaluate to accept a string.
The string can have a trailing '//# sourceURL=' comment which would
name the evaluation to make stacks beautiful.

In order to make sourceURL comments possible, this patch:
- removes wrapping of the client function into `Promise.resolve()`
- stops passing `awaitPromise` parameter to `Runtime.evaluate`
- starts to await promise via the `Runtime.awaitPromise` if the return type of the evaluation
  is promise

closes #118
2017-07-27 12:23:41 -07:00
..
FileSystem.js Convert var's to let's 2017-06-22 14:58:39 -07:00
Phantom.js Convert var's to let's 2017-06-22 14:58:39 -07:00
runner.js Remote Browser's remoteDebuggingPort option 2017-07-11 08:30:41 -07:00
System.js Convert var's to let's 2017-06-22 14:58:39 -07:00
utilities.js Convert var's to let's 2017-06-22 14:58:39 -07:00
WebPage.js page.evaluate takes a string in addition to function (#135) 2017-07-27 12:23:41 -07:00
WebServer.js Convert var's to let's 2017-06-22 14:58:39 -07:00