<script> function test() { try { throw new Error( "Get name") } catch (e) { console.log(e.stack); } } test(); </script>