- Version: 8.9.4
- Platform: Windows 10 x64
- Subsystem: powershell
Currently trying to console.log WeakSet or WeakMap will always display as empty.
varset=newWeakSet([{yes: true}]);console.log(set);// logs WeakSet{}varmap=newWeakMap([[{yes: true},true]]);console.log(map);// logs WeakMap{}I believe I understand why logging them does not work, but node should display a warning and/or should document this behavior.
Currently trying to console.log WeakSet or WeakMap will always display as empty.
I believe I understand why logging them does not work, but node should display a warning and/or should document this behavior.