blob: 8d4d2ea2ea0dda6d6844bdc5a53caf7c7db416de [file] [log] [blame]
function assert(a, message) {
if (!a)
throw new Error(message);
}
let inst = new class {
a = eval("(i) => i.#b");
#b = {};
};
inst.a(inst).x = 1;
assert(inst.a(inst).x == 1);