doc-frames-async.html (491B)
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 <html> 5 <head> 6 <title>Frames</title> 7 </head> 8 9 <body> 10 <script> 11 async function sleep() { 12 await new Promise(r => setTimeout(r, 10)); 13 debugger; 14 } 15 16 async function main() { 17 await sleep(); 18 } 19 </script> 20 </body> 21 </html>