Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
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);