blob: b8197d8af48bf3db741bf78c3adc9e67d51c7c4b [file] [log] [blame]
function assert(b) {
if (!b) throw new Error;
}
class M {
#x() {}
static isM(obj) {
return #x in obj;
}
}
noInline(M.prototype.isM);
function test() {
assert(M.isM(new M) && !M.isM(M) && !M.isM({}));
}
noInline(test);
for (var i = 0; i < 1e6; ++i)
test();