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 // Any copyright is dedicated to the Public Domain.
2 // http://creativecommons.org/licenses/publicdomain/
3 // Contributor: Jason Orendorff <jorendorff@mozilla.com>
5 var x = {};
6 for (var i = 0; i < 2; i++) {
7 Object.defineProperty(x, "y", {configurable: true, value: function () {}});
8 x.y();
9 }
10 reportCompare(0, 0, "ok");