Fri, 16 Jan 2015 04:50:19 +0100
Replace accessor implementation with direct member state manipulation, by request https://trac.torproject.org/projects/tor/ticket/9701#comment:32
1 load(libdir + "asserts.js");
2
3 // Throw a TypeError if the trap reports the same property twice
4 assertThrowsInstanceOf(function () {
5 Object.keys(new Proxy({}, {
6 keys: function (target) {
7 return [ 'foo', 'foo' ];
8 }
9 }));
10 }, TypeError);