Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: address review
  • Loading branch information
bcoe committed Nov 5, 2020
commit 46e0bbaad381fd519f57792b2f19dd14eadcbd61
3 changes: 3 additions & 0 deletions doc/api/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ import { findSourceMap, SourceMap } from 'module';
const { findSourceMap, SourceMap } = require('module');
```

<!-- Anchors to make sure old links find a target -->
<a name="module_module_findsourcemap_path_error"></a>
### `module.findSourceMap(path)`

<!-- YAML
added:
- v13.7.0
Expand Down
3 changes: 1 addition & 2 deletions lib/internal/util/iterable_weak_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ class IterableWeakMap {
}

get(key) {
const entry = this.#weakMap.get(key);
return entry && entry.value;
return this.#weakMap.get(key)?.value;
}

delete(key) {
Expand Down