10 lines
113 B
JavaScript

function fn() {
return new class {
static #priv;
method(obj) {
return #priv in obj;
}
}
}