Title: [202008] trunk/Websites/perf.webkit.org
Revision
202008
Author
[email protected]
Date
2016-06-13 15:25:52 -0700 (Mon, 13 Jun 2016)

Log Message

Build fix. Strip out "use strict" everywhere so that the perf dashboard works on the shipping Safari.

* tools/bundle-v3-scripts.py:
(main):

Modified Paths

Diff

Modified: trunk/Websites/perf.webkit.org/ChangeLog (202007 => 202008)


--- trunk/Websites/perf.webkit.org/ChangeLog	2016-06-13 22:17:50 UTC (rev 202007)
+++ trunk/Websites/perf.webkit.org/ChangeLog	2016-06-13 22:25:52 UTC (rev 202008)
@@ -1,5 +1,12 @@
 2016-06-13  Ryosuke Niwa  <[email protected]>
 
+        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  <[email protected]>
+
         Invalid token error when trying to create an A/B analysis for a range
         https://bugs.webkit.org/show_bug.cgi?id=158679
 

Modified: trunk/Websites/perf.webkit.org/tools/bundle-v3-scripts.py (202007 => 202008)


--- trunk/Websites/perf.webkit.org/tools/bundle-v3-scripts.py	2016-06-13 22:17:50 UTC (rev 202007)
+++ trunk/Websites/perf.webkit.org/tools/bundle-v3-scripts.py	2016-06-13 22:25:52 UTC (rev 202008)
@@ -1,6 +1,7 @@
 #!/usr/bin/python
 
 import os
+import re
 import subprocess
 import sys
 import xml.dom.minidom
@@ -20,7 +21,9 @@
         for script in unbundled_scripts:
             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]
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to