diff options
author | James M Snell <jasnell@gmail.com> | 2017-04-25 10:17:07 -0700 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-05-01 11:18:51 -0700 |
commit | ea9eed56433c714b08930b906b292a21650b3928 (patch) | |
tree | 5415b72b8d3edcf7d20f9595f78f294f760ff79f /test/parallel/test-freelist.js | |
parent | 08809f28ad797b914bad2dcd21eefba898eaaa4d (diff) | |
download | android-node-v8-ea9eed56433c714b08930b906b292a21650b3928.tar.gz android-node-v8-ea9eed56433c714b08930b906b292a21650b3928.tar.bz2 android-node-v8-ea9eed56433c714b08930b906b292a21650b3928.zip |
freelist: simplify export
PR-URL: https://github.com/nodejs/node/pull/12644
Reviewed-By: Brian White <mscdex@mscdex.net>
Diffstat (limited to 'test/parallel/test-freelist.js')
-rw-r--r-- | test/parallel/test-freelist.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/parallel/test-freelist.js b/test/parallel/test-freelist.js index 8ec7134dad..d1f7d888c0 100644 --- a/test/parallel/test-freelist.js +++ b/test/parallel/test-freelist.js @@ -4,12 +4,11 @@ require('../common'); const assert = require('assert'); -const freelist = require('internal/freelist'); +const FreeList = require('internal/freelist'); -assert.strictEqual(typeof freelist, 'object'); -assert.strictEqual(typeof freelist.FreeList, 'function'); +assert.strictEqual(typeof FreeList, 'function'); -const flist1 = new freelist.FreeList('flist1', 3, String); +const flist1 = new FreeList('flist1', 3, String); // Allocating when empty, should not change the list size const result = flist1.alloc('test'); |