Bug 119828
Summary: | Typed array functions not present in jsc shell | ||
---|---|---|---|
Product: | WebKit | Reporter: | Alon Zakai <alonzakai> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WORKSFORME | ||
Severity: | Normal | CC: | oliver |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Alon Zakai
For example
var x = new Float64Array(10);
print([x.set, x.subarray]);
shows that set() and subarray() are not defined in the jsc shell. These are defined in MiniBrowser though.
Having these in the jsc shell would be very useful for automatic testing in Emscripten. We have a test suite in which we generate JS from C inputs, and run js shells to verify the output (mainly node, but can also run spidermonkey or v8 shells). It contains a large amount of testcases including real-world codebases like python, bullet, poppler, etc., and has found various bugs in js engines, I was hoping to run it on jsc.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Oliver Hunt
Have you tried trunk?
Alon Zakai
(In reply to comment #1)
> Have you tried trunk?
Yes, this was on svn trunk pulled the day before I filed this issue (2013-08-13, svn rev 154022).
Oliver Hunt
(In reply to comment #2)
> (In reply to comment #1)
> > Have you tried trunk?
>
> Yes, this was on svn trunk pulled the day before I filed this issue (2013-08-13, svn rev 154022).
Check today :D
Alon Zakai
Nice, looks like this was meanwhile added :)