WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
Bug 18990
SquirrelFish: Function.toString loses new lines
https://bugs.webkit.org/show_bug.cgi?id=18990
Summary
SquirrelFish: Function.toString loses new lines
Oliver Hunt
Reported
2008-05-10 20:06:18 PDT
Regardless of formatting Function.toString now appears to actively strip formatting, try createPkg=function(_1){ var _2=_1.split("."),len=_2.length; var _3=this.global; for(var i=0;i<len-1&&_3&&_2[i];i++){ _3=(_3[_2[i]])?_3[_2[i]]:_3[_2[i]]={}; } return {pkg:_3,className:(len>0)?_2[len-1]:""}; }; in the inspector, and cry at the out put.
Attachments
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2009-03-19 08:33:23 PDT
Bug 24350
is a compatibility regression caused by this.
Cameron Zwarich (cpst)
Comment 2
2009-03-19 17:24:47 PDT
I assigned
bug 24350
to myself, but I may not fix it by fixing this bug, so I won't assign this one to myself.
Geoffrey Garen
Comment 3
2009-03-19 19:04:45 PDT
I talked to Oliver on IRC. He said this bug was about newlines being stripped from the function. He said it seems to have been an Inspector bug, which was resolved.
Bug 24350
and the issue of pretty printing are separate. Maybe we need another bug to cover the pretty printing feature.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug