From 2db758c562b4e480acc2d1a654e2c471a653a039 Mon Sep 17 00:00:00 2001 From: Vladimir Kurchatkin Date: Sat, 14 Feb 2015 22:53:34 +0300 Subject: 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 Reviewed-By: Ben Noordhuis --- test/parallel/test-internal-modules.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/parallel/test-internal-modules.js (limited to 'test/parallel/test-internal-modules.js') diff --git a/test/parallel/test-internal-modules.js b/test/parallel/test-internal-modules.js new file mode 100644 index 0000000000..ebba2500d5 --- /dev/null +++ b/test/parallel/test-internal-modules.js @@ -0,0 +1,8 @@ +var common = require('../common'); +var assert = require('assert'); + +assert.throws(function() { + require('internal/freelist'); +}); + +assert(require('../fixtures/internal-modules') === 42); -- cgit v1.2.3