-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.utilIssues and PRs related to the built-in util module.Issues and PRs related to the built-in util module.
Description
- Version: 8.9.4
- Platform: Windows 10 x64
- Subsystem: powershell
Currently trying to console.log WeakSet or WeakMap will always display as empty.
var set = new WeakSet([{yes: true}]);
console.log(set); // logs WeakSet{}
var map = new WeakMap([[{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.
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.utilIssues and PRs related to the built-in util module.Issues and PRs related to the built-in util module.