<?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>139586</bug_id>
          
          <creation_ts>2014-12-12 07:28:34 -0800</creation_ts>
          <short_desc>Add reading of the binary file to the jsc</short_desc>
          <delta_ts>2014-12-13 11:45:24 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yury Delendik">ydelendik</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ggaren</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1054833</commentid>
    <comment_count>0</comment_count>
    <who name="Yury Delendik">ydelendik</who>
    <bug_when>2014-12-12 07:28:34 -0800</bug_when>
    <thetext>We are using jsc to test the Shumway project (see [1]). Currently jsc has no way to read binary files (js has `read` with seconds argument, d8 has `readbuffer`)

Could you add something like readBinaryFile (along the lines of [2] -- returns wrong length atm) or second argument to the readFile to return ArrayBuffer or Uint8Array?

Thanks.

 [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1108390
 [2] https://gist.github.com/yurydelendik/2d88b2c8bc6e4f2bbe87</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>