| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 <script> |
| 5 // http://crbug.com/644237 |
| 6 test(function() { |
| 7 // Use Element.animate() that takes a dictionary. |
| 8 |
| 9 let element = document.createElement('span'); |
| 10 |
| 11 let keyFrames = {}; |
| 12 Object.defineProperty(keyFrames, 'color', { |
| 13 enumerable: true, |
| 14 get: function() { |
| 15 throw "This exception should be swallowed."; |
| 16 } |
| 17 }); |
| 18 |
| 19 element.animate(keyFrames); |
| 20 }, "Dictionary member's [[Get]] may throw."); |
| 21 |
| 22 done(); |
| 23 </script> |
| OLD | NEW |