Web Inspector: Remove console.asserts from Worker code in optimized builds
https://bugs.webkit.org/show_bug.cgi?id=156124
<rdar://problem/25505031>

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2016-04-01
Reviewed by Timothy Hatcher.

* Scripts/copy-user-interface-resources.pl:
Remove console asserts on the Worker results directory.

* Scripts/remove-console-asserts.pl:
(removeConsoleAssertsInFile):
(removeConsoleAssertsInDirectory):
Refactor into functions for a file and a file for
recursing through directories.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@198968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
3 files changed