Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
1 load(libdir + "asserts.js");
3 /*
4 * Throw a TypeError if the trap reports a new own property on a non-extensible
5 * object
6 */
7 var target = {};
8 Object.preventExtensions(target);
9 assertThrowsInstanceOf(function () {
10 Object.keys(new Proxy(target, {
11 keys: function (target) {
12 return [ 'foo' ];
13 }
14 }));
15 }, TypeError);