[Bug 27890] Create a way to throw Warnings and Errors with proper tracing
https://bugzilla.wikimedia.org/show_bug.cgi?id=27890 Krinkle krinklem...@gmail.com changed: What|Removed |Added Priority|High|Low Component|ResourceLoader |JavaScript Version|1.18|1.17 AssignedTo|krinklem...@gmail.com |wikibugs-l@lists.wikimedia. ||org -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 27890] Create a way to throw Warnings and Errors with proper tracing
https://bugzilla.wikimedia.org/show_bug.cgi?id=27890 Krinkle krinklem...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution||WORKSFORME --- Comment #3 from Krinkle krinklem...@gmail.com 2012-05-12 01:16:22 UTC --- WMF'ing this for now. We can simply throw real exceptions can one can derive the callee from the stacktrace. And in case we can to log only without interrupting the flow the common practice is to throw the error in a try-catch and log the Error object (which will have the stacktrace). -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 27890] Create a way to throw Warnings and Errors with proper tracing
https://bugzilla.wikimedia.org/show_bug.cgi?id=27890 --- Comment #2 from Brion Vibber br...@wikimedia.org 2011-04-20 17:40:32 UTC --- I think this'll depend on the browser and such... Firefox 4.0.1 w/ Firebug 1.7.1b console: * doesn't show file line number for 'throw test' from a gadget. * does show file line number for 'throw new Error(test)' from a gadget. Chrome 10.0.648.205 w/ dev console open * does show file line number for 'throw test' from a gadget. * does show file line number for 'throw new Error(test)' from a gadget. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 27890] Create a way to throw Warnings and Errors with proper tracing
https://bugzilla.wikimedia.org/show_bug.cgi?id=27890 Mark A. Hershberger m...@everybody.org changed: What|Removed |Added Priority|Normal |High CC||m...@everybody.org -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 27890] Create a way to throw Warnings and Errors with proper tracing
https://bugzilla.wikimedia.org/show_bug.cgi?id=27890 Krinkle krinklem...@gmail.com changed: What|Removed |Added CC||krinklem...@gmail.com --- Comment #1 from Krinkle krinklem...@gmail.com 2011-03-06 11:55:46 UTC --- The reason this is more than a simple request to create those methods is two things: * For one, javascript doesnt' have anything like __FUNCTION__, __METHOD__, __LINE__ etc. in a function arguments.callee.name can be useful in some cases, but then again, we don't need the name of the function we're in (which would either be the deprecated function itself or the log wrapper) * Aside from the current function, the point is to trace where the current funtion was called *from* -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l