James M Snell
ea9eed5643
freelist: simplify export
...
PR-URL: https://github.com/nodejs/node/pull/12644
Reviewed-By: Brian White <mscdex@mscdex.net >
2017-05-01 11:18:51 -07:00
Gibson Fahnestock
7a0e462f9f
test: use eslint to fix var->const/let
...
Manually fix issues that eslint --fix couldn't do automatically.
PR-URL: https://github.com/nodejs/node/pull/10685
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2017-01-11 11:43:52 +00:00
Adrian Estrada
9042a9161d
test: replace equal with strictEqual in test-freelist.js
...
Improving asserts in test-freelist.js
PR-URL: https://github.com/nodejs/node/pull/9910
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-12-05 08:20:00 -08:00
Anton Khlynovskiy
c647e87504
lib: freelist: use .pop() for allocation
...
Array#pop() is known to be faster than Array#shift().
To be exact, it's O(1) vs. O(n). In this case there's no difference
from which side of the "pool" array the object is retrieved,
so .pop() should be preferred.
PR-URL: https://github.com/nodejs/node/pull/2174
Reviewed-By: mscdex - Brian White <mscdex@mscdex.net >
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com >
Reviewed-By: ofrobots - Ali Ijaz Sheikh <ofrobots@google.com >
2016-03-02 09:24:24 -08:00
cjihrig
b70dc67828
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 >
2015-11-11 10:36:06 -05:00
Rich Trott
02fe8215f0
test: load common.js to test for global leaks
...
common.js contains code that checks for variables leaking into the
global namespace. Load common.js in all tests that do not
intentionally leak variables.
PR-URL: https://github.com/nodejs/node/pull/3095
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
2015-10-01 20:16:35 -07:00
Sakthipriyan Vairamani
fef87fee1d
lib,test: add freelist deprecation and test
...
As per the dicussion in https://github.com/nodejs/io.js/issues/569 ,
this patch issues a deprecation warning when freelist module is
required. A test file for freelist is also added.
PR-URL: https://github.com/nodejs/io.js/pull/2176
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com >
2015-07-17 19:48:31 -07:00