diff options
author | bcoe <bencoe@google.com> | 2020-11-03 03:57:33 +0300 |
---|---|---|
committer | Benjamin Coe <bencoe@google.com> | 2020-11-06 23:47:23 +0300 |
commit | 8fa90358d7b6a21e945d865f14ddb9ad02572921 (patch) | |
tree | fccf39c7a2a25d9e1bba51b760b3ce11a6f91f13 /node.gyp | |
parent | 1fd7d8e90387a83fe3a2566bdac147c1b33cdbcc (diff) |
module: refactor to use iterable-weak-map
Using an iterable WeakMap (a data-structure that uses WeakRef and
WeakMap), we are able to: stop relying on Module._cache to
serialize source maps; stop requiring an error object when calling
findSourceMap().
PR-URL: https://github.com/nodejs/node/pull/35915
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r-- | node.gyp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -230,6 +230,7 @@ 'lib/internal/util/debuglog.js', 'lib/internal/util/inspect.js', 'lib/internal/util/inspector.js', + 'lib/internal/util/iterable_weak_map.js', 'lib/internal/util/types.js', 'lib/internal/http2/core.js', 'lib/internal/http2/compat.js', |