blob: 4d178ecacb82f8fa203f83b8fd58200be304f66d [file] [log] [blame]
function assert(actual, expected) {
if (actual !== expected)
throw Error("Expected: " + expected + " Actual: " + actual);
}
function classExpr() {
return class {
#method() {
return 'foo';
}
access() {
return this.#method();
}
}
}
for (let i = 0; i < 10000; i++) {
let C = classExpr();
let c = new C();
assert(c.access(), 'foo');
}