doc-preview.html (755B)
1 <!-- This Source Code Form is subject to the terms of the Mozilla Public 2 - License, v. 2.0. If a copy of the MPL was not distributed with this 3 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 4 <!DOCTYPE html> 5 <html> 6 <head> 7 <meta charset="utf-8"/> 8 <title>Debugger Preview</title> 9 </head> 10 11 <body> 12 <script src="preview.js"></script> 13 <script> 14 15 function testInline() { 16 const obj = {prop: 2} 17 obj?.prop 18 debugger; 19 } 20 21 // This inline script allows this HTML page to show up as a 22 // source. It also needs to introduce a new global variable so 23 // it's not immediately garbage collected. 24 inline_script = function () { var x = 5; }; 25 </script> 26 </body> 27 </html>