WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
79548
Error.stack includes newlines after function names
https://bugs.webkit.org/show_bug.cgi?id=79548
Summary
Error.stack includes newlines after function names
Timothy Hatcher
Reported
2012-02-24 18:02:41 PST
Error.stack seems to include a newline after function names. ["myStackTrace ", "bar ", "foo ", "eval code", "eval@[native code]"] It shouldn't.
Attachments
Add attachment
proposed patch, testcase, etc.
Gavin Barraclough
Comment 1
2012-03-11 15:47:00 PDT
Hi Tim, Error.stack is no longer an array, and is now just a string. As such, I think the newlines are now necessary to separate the functions, and to get the stack as a array without newlines you just need to use .stack.split('\n'). Does this seem good to you, or are you hoping for a different interface? - if it's good as is, let's close this bug. cheers, G.
Timothy Hatcher
Comment 2
2012-03-11 15:50:48 PDT
Ugly, but it is fine. (I know this is for compatability reasons.)
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