feat(coverage): add an option to collect coverage of anonymous scripts (#2796)

This patch adds `reportAnonymousScripts` option to the `coverage.startJSCoverage` method. With this option, anonymous scripts are reported as well.

Fixes #2777
This commit is contained in:
Pavel Pomerantsev
2018-07-11 21:38:34 -04:00
committed by Andrey Lushnikov
parent 96c558d544
commit 12bc1e1a62
5 changed files with 47 additions and 13 deletions

View File

@@ -0,0 +1 @@
<script>eval('console.log("foo")')</script>