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

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