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 // Throw a TypeError if the trap skips a non-configurable enumerable property
4 var target = {};
5 Object.defineProperty(target, 'foo', {
6 enumerable: true,
7 configurable: false
8 });
9 assertThrowsInstanceOf(function () {
10 Object.getOwnPropertyNames(new Proxy(target, {
11 getOwnPropertyNames: function (target) {
12 return [];
13 }
14 }));
15 }, TypeError);