026.html (474B)
1 <!doctype html> 2 <title>Cloning objects with getter properties</title> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <div id=log></div> 6 <script> 7 async_test(function() { 8 var obj = {}; 9 var err = new Error("getter_should_propagate_exceptions"); 10 obj.__defineGetter__( "field", function(){ throw err }); 11 12 assert_throws_exactly(err, function() { 13 postMessage(obj, '*'); 14 }); 15 this.done(); 16 }); 17 </script>