compile-error-in-body-onerror.html (661B)
1 <!doctype html> 2 <html> 3 <head> 4 <title>window.onerror - compile error in <body onerror></title> 5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharnessreport.js"></script> 7 <script> 8 setup({allow_uncaught_exception:true}); 9 var t = async_test(); 10 var ran = false; 11 window.onerror = t.step_func(function(){ 12 ran = true; 13 }); 14 </script> 15 </head> 16 <body onerror="{"><!-- sets the event handler to null before compiling --> 17 <div id=log></div> 18 <script> 19 for(;) {} 20 </script> 21 <script> 22 t.step(function(){ 23 assert_false(ran, 'ran'); 24 t.done(); 25 }); 26 </script> 27 </body> 28 </html>