21:36 | <jlhwung> | In RS:ClassDefinitionEvaluation of https://arai-a.github.io/ecma262-compare/?pr=2417, we invoke PrivateMethodOrAccessorAdd on each element of staticPrivateMethod, but staticPrivateMethod is not defined in previous steps.
I am wondering for a static private accessor:
class C { static accessor #p }
at which step is the private name #p registered to C .[[PrivateElements]]? I feel like it should be handled in PrivateMethodOrAccessorAdd just like getter/setter, and its BackingStorageKey will be registered in InitializeFieldOrAccessor separately.
|
21:39 | <jlhwung> | This can be observed from a half-constructed class:
try {
var halfConstructed;
class C {
static test() {
#x in C; //true or false?
}
static accessor #x;
static accessor #y = (() => {
halfConstructed = C;
throw new Error;
})();
}
} catch {
halfConstructed.test()
}
|
21:42 | <ljharb> | ljharb: when you get a sec, can you update the meeting description to replace the existing agenda link with this one? sorry for the delay; this should be done |