Files
node/lib/internal
Ruben Bridgewater d0043136e5 module: add path to the module object
This adds the `path` property to the module object. It contains the
current directory as path. That is necessary to add an extra caching
layer.

It also makes sure the `id` uses a default in case it's not set.
Otherwise the `path.dirname(id)` command could fail.

PR-URL: https://github.com/nodejs/node/pull/26970
Refs: https://github.com/nodejs/node/pull/25362
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2019-04-04 13:03:28 +02:00
..
2019-04-03 16:55:59 -05:00
2019-02-14 00:00:50 +01:00
2018-05-18 15:25:41 +02:00
2019-03-30 13:16:39 +01:00
2018-11-16 21:56:29 +09:00
2019-03-25 16:28:07 +01:00
2018-08-12 10:44:53 -07:00
2019-03-25 16:28:07 +01:00
2019-03-30 22:25:35 +01:00

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These modules can be changed at any time. Reliance on these modules outside of core is not supported in any way.