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