pt application:</p>
<pre><code class="language-js">const report = process.report.getReport();
console.log(typeof report === 'object'); // true

// Similar to process.report.writeReport() output
console.log(JSON.stringify(report, null, 2));
</code></pre>
<p>This function takes an optional additional argument <code>err</code> - an <code>Error</code> object
that will be used as the context for the JavaScript stack printed in the report.</p>
<pre><code class="language-js">const report = process.report.getReport