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");
2
3 // Throw a TypeError if the trap does not return an object
4 assertThrowsInstanceOf(function () {
5 Object.getOwnPropertyNames(new Proxy({}, {
6 getOwnPropertyNames: function (target) {
7 return;
8 }
9 }));
10 }, TypeError);