test-stacktrace-location-debugger-link.html (871B)
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="utf-8"> 5 <title>Web Console test for opening console call stacktrace links in Debugger</title> 6 <!-- Any copyright is dedicated to the Public Domain. 7 http://creativecommons.org/publicdomain/zero/1.0/ --> 8 </head> 9 <body> 10 <p>Web Console test for opening console call stacktrace links in Debugger.</p> 11 <script type="text/javascript"> 12 "use strict"; 13 14 function foo() { 15 bar(); 16 } 17 18 function bar() { 19 console.log(new Error("myErrorObject")); 20 21 console.trace(); 22 23 // Test that unresolved URL can still be opened in the debugger 24 // eslint-disable-next-line no-eval 25 eval(`console.log(new Error("customSourceURL")); //# sourceURL=http://example.org/./source.js`); 26 27 atob(-1); 28 } 29 30 foo(); 31 </script> 32 </body> 33 </html>