mirror of
https://github.com/nodejs/node.git
synced 2025-05-09 07:27:32 +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>
7 lines
170 B
JavaScript
7 lines
170 B
JavaScript
// Flags: --expose_internals
|
|
|
|
var common = require('../common');
|
|
var assert = require('assert');
|
|
|
|
assert.equal(typeof require('internal/freelist').FreeList, 'function');
|