Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
1 load(libdir + "asserts.js");
3 var target = {};
4 Object.getOwnPropertyDescriptor(new Proxy(target, {
5 getOwnPropertyDescriptor: function () {
6 return {value: 2, configurable: true};
7 }
8 }), 'foo');
10 var target = {};
11 Object.preventExtensions(target);
12 assertThrowsInstanceOf(function () {
13 Object.getOwnPropertyDescriptor(new Proxy(target, {
14 getOwnPropertyDescriptor: function () {
15 return {value: 2, configurable: true};
16 }
17 }), 'foo');
18 }, TypeError);