mirror of
https://github.com/nodejs/node.git
synced 2025-05-18 01:47:03 +00:00

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>
9 lines
188 B
JavaScript
9 lines
188 B
JavaScript
var common = require('../common');
|
|
var assert = require('assert');
|
|
|
|
assert.throws(function() {
|
|
require('internal/freelist');
|
|
});
|
|
|
|
assert(require('../fixtures/internal-modules') === 42);
|