Re: Getting a JS stack from an automation assertion

2017-06-20 Thread Boris Zbarsky
On 6/20/17 1:53 PM, Benjamin Smedberg wrote: Is there a way to have automation call DumpJSStack() on assertion (before crashing) You could hack a DumpJSStack() call into the nsDebug machinery, basically. Would it be safe to call DumpJSStack() explicitly from the place where I'm firing this as

Getting a JS stack from an automation assertion

2017-06-20 Thread Benjamin Smedberg
I'm working on a patch which adds a new assertion, and this code is failing in automation in an intermittent way. The assertion is in C++ code but it's being called by unknown JS code. Is there a way to have automation call DumpJSStack() on assertion (before crashing), or are there other debugging