summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/collections/bug-743101.js
blob: 53283066902034af69640f63998056297a4f1ffe (plain)
1
2
3
4
5
6
7
load(libdir + "asserts.js");

var g = newGlobal({newCompartment: true});
for (var cls of [Map, Set]) {
    var getter = Object.getOwnPropertyDescriptor(cls.prototype, "size").get;
    assertThrowsInstanceOf(function () { getter.apply(g, []); }, g.TypeError);
}