blob: 1c047cffc74f94ce4c5457d86bd30497fb0a48b4 [file] [log] [blame]
class C {
#field;
constructor(i) {
this.#field = i;
}
getField() {
return this.#field;
}
}
noInline(C.prototype.getField);
let c = new C("test");
for (let i = 0; i < 5000000; i++) {
if (c.getField() !== "test")
throw new Error("unexpected field value");
}