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 var g = newGlobal();
4 for (var cls of [Map, Set]) {
5 var getter = Object.getOwnPropertyDescriptor(cls.prototype, "size").get;
6 assertThrowsInstanceOf(function () { getter.apply(g, []); }, g.TypeError);
7 }