| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../../resources/js-test.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
| 5 <script src="./resources/document-register-fuzz.js"></script> | 5 <script src="./resources/document-register-fuzz.js"></script> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <div id="container"></div> | 8 <div id="container"></div> |
| 9 <script> | 9 <script> |
| 10 description("Fuzzing document.register() through getters. PASS unless crash."); | 10 description("Fuzzing document.registerElement() through getters. PASS unless cra
sh."); |
| 11 | 11 |
| 12 setupObjectHooks({ | 12 setupObjectHooks({ |
| 13 prototypeGet: function() { throw "Error"; }, | 13 prototypeGet: function() { throw "Error"; }, |
| 14 prototypeSet: function(value) { throw "Error"; }, | 14 prototypeSet: function(value) { throw "Error"; }, |
| 15 constructorGet: function() { throw "Error"; }, | 15 constructorGet: function() { throw "Error"; }, |
| 16 constructorSet: function(value) { throw "Error"; } | 16 constructorSet: function(value) { throw "Error"; } |
| 17 }); | 17 }); |
| 18 | 18 |
| 19 exerciseDocumentRegister(); | 19 exerciseDocumentRegister(); |
| 20 </script> | 20 </script> |
| 21 </body> | 21 </body> |
| 22 </html> | 22 </html> |
| OLD | NEW |