Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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);