Changeset 52068 in webkit
- Timestamp:
- Dec 13, 2009 12:31:02 PM (14 years ago)
- Location:
- trunk/SunSpider
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SunSpider/ChangeLog
r52062 r52068 1 2009-12-13 Maciej Stachowiak <mjs@apple.com> 2 3 Reviewed by Sam Weinig. 4 5 Use JSON.parse instead of eval for Web-hosted SunSpider results processing 6 https://bugs.webkit.org/show_bug.cgi?id=32490 7 8 * hosted/json2.js: Added. Incorporated from json.org 9 * resources/driver-TEMPLATE.html: Fix an HTML validation bug I noticed. 10 * resources/results-TEMPLATE.html: Use JSON.parse instead of eval to process 11 results. 12 1 13 2009-12-12 Maciej Stachowiak <mjs@apple.com> 2 14 -
trunk/SunSpider/resources/driver-TEMPLATE.html
r52062 r52068 28 28 29 29 <title>SunSpider JavaScript Benchmark (In Progress...)</title> 30 <link rel="stylesheet" href="../sunspider.css"> </link>30 <link rel="stylesheet" href="../sunspider.css"> 31 31 </head> 32 32 33 <body onload=" next()">33 <body onload="start()"> 34 34 35 35 <h2><span id="logo">☀</span>SunSpider JavaScript Benchmark <small>(In Progress...)</small></h2> -
trunk/SunSpider/resources/results-TEMPLATE.html
r52062 r52068 28 28 29 29 <title>SunSpider JavaScript Benchmark Results</title> 30 <link rel="stylesheet" href="../sunspider.css"> </link>30 <link rel="stylesheet" href="../sunspider.css"> 31 31 </head> 32 32 … … 48 48 </pre> 49 49 50 50 <script src="../json2.js"></script> 51 51 <script> 52 52 var selfUrlInput = document.getElementById("selfUrl"); 53 53 selfUrlInput.value = location; 54 54 55 var output = pivot( eval("(" + decodeURI(location.search.substring(1)) + ")"));55 var output = pivot(JSON.parse(decodeURI(location.search.substring(1)))); 56 56 57 57 function pivot(input) { … … 84 84 { 85 85 document.getElementById("console").innerHTML = ""; 86 var output1 = pivot( eval("(" + decodeURI(other.split("?")[1]) + ")"));86 var output1 = pivot(JSON.parse(decodeURI(other.split("?")[1]))); 87 87 sunspiderCompareResults(output1, output2); 88 88 }
Note: See TracChangeset
for help on using the changeset viewer.