Why jsodc doesn't recognize keys defined via variables inside square brackets outside of the object's "constructor"?
for example:
const key = /** @type {const} */ "someKey";
const a = {};
a[key] = 42;
a["someOtherKey"] = 42;
const b = {
someOtherKey: 42,
[key]:4
}
as a result:
object b contains both keys, when
object a only "someOtherKey"
Tried in vscode
same for Object.defineProperty