Bug 139586 - Add reading of the binary file to the jsc
Summary: Add reading of the binary file to the jsc
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-12 07:28 PST by Yury Delendik
Modified: 2014-12-13 11:45 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yury Delendik 2014-12-12 07:28:34 PST
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