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