If I open the WebInspector and type "console.trace()" the inspector will crash. It should probably do nothing. Maybe if we were broken in the script debugger it should show a back trace, but normally it seems meaningless. Sorry my debugger is sucking and I don't have a backtrace.
I think it is crashing because the console uses eval(). Just a hunch.
Created attachment 23930 [details] patch Checking if the caller function is 0 was missing.
Created attachment 23931 [details] fixed minor mistake fixed mistake
Comment on attachment 23931 [details] fixed minor mistake This should have a layout test and use if (!func) to comply with the style guidelines.
Created attachment 23939 [details] patch I wasn't sure how to write a layout test so I wrote a manual test. What is the difference between a layout test and a manual test?
Comment on attachment 23939 [details] patch I was able to replicate the error by having a script tag with nothing in it but "console.trace()". Since that case does not require a manual action we can make an automated layout test instead of a manual test. To see many examples of layout tests look in the LayoutTests/fast/ directory.
Try console.trace(console) in the Web Inspector. Or console.trace(function(){}). Anything will crash it.