diff options
author | Vladimir Kurchatkin <vladimir.kurchatkin@gmail.com> | 2015-02-14 22:53:34 +0300 |
---|---|---|
committer | Vladimir Kurchatkin <vladimir.kurchatkin@gmail.com> | 2015-03-25 22:12:18 +0300 |
commit | 2db758c562b4e480acc2d1a654e2c471a653a039 (patch) | |
tree | d220a3b9b05d1682dcd1fecfd446ed69c5a599b8 /test/fixtures/internal-modules | |
parent | 45814216ee29b8d6c5faa00c6d27b721f628a1ea (diff) | |
download | android-node-v8-2db758c562b4e480acc2d1a654e2c471a653a039.tar.gz android-node-v8-2db758c562b4e480acc2d1a654e2c471a653a039.tar.bz2 android-node-v8-2db758c562b4e480acc2d1a654e2c471a653a039.zip |
iojs: introduce internal modules
Internal modules can be used to share private code between
public modules without risk to expose private APIs to the
user.
PR-URL: https://github.com/iojs/io.js/pull/848
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'test/fixtures/internal-modules')
-rw-r--r-- | test/fixtures/internal-modules/index.js | 1 | ||||
-rw-r--r-- | test/fixtures/internal-modules/node_modules/internal/freelist.js | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/test/fixtures/internal-modules/index.js b/test/fixtures/internal-modules/index.js new file mode 100644 index 0000000000..7543c9b737 --- /dev/null +++ b/test/fixtures/internal-modules/index.js @@ -0,0 +1 @@ +module.exports = require('internal/freelist'); diff --git a/test/fixtures/internal-modules/node_modules/internal/freelist.js b/test/fixtures/internal-modules/node_modules/internal/freelist.js new file mode 100644 index 0000000000..888cae37af --- /dev/null +++ b/test/fixtures/internal-modules/node_modules/internal/freelist.js @@ -0,0 +1 @@ +module.exports = 42; |