<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>22914</bug_id>
          
          <creation_ts>2008-12-18 07:33:23 -0800</creation_ts>
          <short_desc>The string-base64 SunSpider test uses string indexing which is not supported by the standard – but all browsers, except IE support it</short_desc>
          <delta_ts>2011-07-02 17:40:11 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www2.webkit.org/perf/sunspider-0.9/string-base64.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Shreesh Dubey">shreeshd</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>emacemac7</cc>
    
    <cc>mjs</cc>
    
    <cc>seth.gaurav</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>102880</commentid>
    <comment_count>0</comment_count>
    <who name="Shreesh Dubey">shreeshd</who>
    <bug_when>2008-12-18 07:33:23 -0800</bug_when>
    <thetext>When you try to access a string like an array, non-IE browsers return the character at that index but IE returns UNDEFINED.  The ES3.0 standard does not support this so IE is actally behaving in a standard compliant way. However, due to this, the test later performs string operations where the keyword UNDEFINED gets converted to a string “UNDEFINED” which essentially has 8 more characters that produces incorrect result on IE. It is a simple 1-line change that does not does not affect time on other browsers, but produces correct time for IE. Here is the proposed change:
var toBase64Table = &apos;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/&apos;;
to
var toBase64Table = [&apos;A&apos;, &apos;B&apos;, &apos;C&apos;, &apos;D&apos;, &apos;E&apos;, &apos;F&apos;, &apos;G&apos;, &apos;H&apos;, &apos;I&apos;, &apos;J&apos;, &apos;K&apos;, &apos;L&apos;, &apos;M&apos;, &apos;N&apos;, &apos;O&apos;, &apos;P&apos;, &apos;Q&apos;, &apos;R&apos;, &apos;S&apos;, &apos;T&apos;, &apos;U&apos;, &apos;V&apos;, &apos;W&apos;, &apos;X&apos;, &apos;Y&apos;, &apos;Z&apos;, &apos;a&apos;, &apos;b&apos;, &apos;c&apos;, &apos;d&apos;, &apos;e&apos;, &apos;f&apos;, &apos;g&apos;, &apos;h&apos;, &apos;i&apos;, &apos;j&apos;, &apos;k&apos;, &apos;l&apos;, &apos;m&apos;, &apos;n&apos;, &apos;o&apos;, &apos;p&apos;, &apos;q&apos;, &apos;r&apos;, &apos;s&apos;, &apos;t&apos;, &apos;u&apos;, &apos;v&apos;, &apos;w&apos;, &apos;x&apos;, &apos;y&apos;, &apos;z&apos;, &apos;0&apos;, &apos;1&apos;, &apos;2&apos;, &apos;3&apos;, &apos;4&apos;, &apos;5&apos;, &apos;6&apos;, &apos;7&apos;, &apos;8&apos;, &apos;9&apos;, &apos;+&apos;, &apos;/&apos;]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104463</commentid>
    <comment_count>1</comment_count>
    <who name="Gaurav Seth">seth.gaurav</who>
    <bug_when>2009-01-05 11:51:37 -0800</bug_when>
    <thetext>This is for the string-base64.js test in SunSpider. 
Moreover the SunSpider/tests/string-base64.js does not compute a valid base64 value. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>431660</commentid>
    <comment_count>2</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2011-07-02 17:40:11 -0700</bug_when>
    <thetext>IE6 is no longer very relevant, and string indexing is part of ECMAScript 5. So likely won&apos;t change this</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>