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