2016-06-13 Ryosuke Niwa <rniwa@webkit.org>
+ Build fix. Strip out "use strict" everywhere so that the perf dashboard works on the shipping Safari.
+
+ * tools/bundle-v3-scripts.py:
+ (main):
+
+2016-06-13 Ryosuke Niwa <rniwa@webkit.org>
+
Invalid token error when trying to create an A/B analysis for a range
https://bugs.webkit.org/show_bug.cgi?id=158679
#!/usr/bin/python
import os
+import re
import subprocess
import sys
import xml.dom.minidom
for script in unbundled_scripts:
src = script.getAttribute('src')
with open(os.path.join(public_v3_dir, src)) as script_file:
- bundled_script += script_file.read()
+ script_content = script_file.read()
+ script_content = re.sub(r'([\"\'])use strict\1;', '', script_content)
+ bundled_script += script_content
jsmin = subprocess.Popen(['python', os.path.join(tools_dir, 'jsmin.py')], stdin=subprocess.PIPE, stdout=subprocess.PIPE)
minified_script = jsmin.communicate(input=bundled_script)[0]