mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
lib,test: remove publicly exposed freelist
The freelist module was deprecated in io.js and moved to an internal module. This commit removes public access to freelist, while leaving the internal module, which is still in use. Fixes: https://github.com/nodejs/node/issues/569 PR-URL: https://github.com/nodejs/node/pull/3738 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
const util = require('internal/util');
|
||||
|
||||
module.exports = require('internal/freelist');
|
||||
util.printDeprecationMessage('freelist module is deprecated.');
|
||||
1
node.gyp
1
node.gyp
@@ -29,7 +29,6 @@
|
||||
'lib/dns.js',
|
||||
'lib/domain.js',
|
||||
'lib/events.js',
|
||||
'lib/freelist.js',
|
||||
'lib/fs.js',
|
||||
'lib/http.js',
|
||||
'lib/_http_agent.js',
|
||||
|
||||
@@ -4,12 +4,10 @@
|
||||
|
||||
require('../common');
|
||||
const assert = require('assert');
|
||||
const freelist = require('freelist');
|
||||
const internalFreelist = require('internal/freelist');
|
||||
const freelist = require('internal/freelist');
|
||||
|
||||
assert.equal(typeof freelist, 'object');
|
||||
assert.equal(typeof freelist.FreeList, 'function');
|
||||
assert.strictEqual(freelist, internalFreelist);
|
||||
|
||||
const flist1 = new freelist.FreeList('flist1', 3, String);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user