Code: Select all
let test = {};
let s = Symbol();
let t = Symbol();
let v = Symbol('example');
test[s] = 1;
test[t] = 2;
test['u'] = 3;
test[v] = 4;
test['w'] = 5;
console.log(test);
Actual functionality, such as "test[t]", "test.hasOwnProperty(v)", "Object.hasOwn(test, s)", etc... all work exactly as expected, so it's not broken at a functionality level, just the console display. Definitely a low-priority problem, but I figured I'd mention it in case anyone doing debugging is looking at an object and wondering where the Symbol()ized properties are.
Edit: I think this may be an actual issue, as Object.getOwnPropertyDescriptors() is not listing symbols either.