mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
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:
committed by
Andrey Lushnikov
parent
96c558d544
commit
12bc1e1a62
1
test/assets/jscoverage/eval.html
Normal file
1
test/assets/jscoverage/eval.html
Normal file
@@ -0,0 +1 @@
|
||||
<script>eval('console.log("foo")')</script>
|
||||
Reference in New Issue
Block a user