blob: ee901247e8dfdbaf115d279892f7ba5c6fda6275 [file] [log] [blame]
function assert(a, e) {
if (a !== e)
throw new Error("Expected: " + e + " but got: " + a);
}
class A {}
class C extends A {
#method() {
return "base";
}
constructor() {
eval("super()");
}
baseAccess() {
return this.#method();
}
}
let c = new C();
assert(c.baseAccess(), "base");