RESOLVED FIXED 18869
SQUIRRELFISH: function toString broken after calling
https://bugs.webkit.org/show_bug.cgi?id=18869
Summary SQUIRRELFISH: function toString broken after calling
Maciej Stachowiak
Reported 2008-05-03 01:38:34 PDT
function.toString does not work right after calling the function. This breaks at least the following layout tests: fast/js/toString-elision-trailing-comma.html fast/js/toString-prefix-postfix-preserve-parens.html fast/js/kde/lval-exceptions.html
Attachments
fix by keeping references to the original source (107.76 KB, patch)
2008-05-10 05:10 PDT, Maciej Stachowiak
oliver: review+
Geoffrey Garen
Comment 1 2008-05-07 13:17:12 PDT
On IRC, Maciej said he was working on this.
Maciej Stachowiak
Comment 2 2008-05-10 05:10:05 PDT
Created attachment 21056 [details] fix by keeping references to the original source
Oliver Hunt
Comment 3 2008-05-10 12:59:01 PDT
Comment on attachment 21056 [details] fix by keeping references to the original source r=me, although i am concerned about this approach in the long term. As we are no longer actually decompiling there are two side effects: * It is no longer possible to use function.toString to "prettify" source which makes debugging google, etc difficult (for us), and there are a number of places i've seen on the web that reference decompilation as a way to reformat JS. * This renders a number of fuzzers somewhat useless. JSFunFuzz for instance does roundtrip checks which in general are meant to pick up times when we have compiled code that does one thing into an incorrect form, which we now lose as all we do is regurgitate what we were given. That said if we start doing significant optimisations and restructuring with the bytecode stream decopmilation may not be entirely helpful.
Note You need to log in before you can comment on or make changes to this bug.