lib: copy arguments object instead of leaking it
Instead of leaking the arguments object by passing it as an argument to a function, copy it's contents to a new array, then pass the array. This allows V8 to optimize the function that contains this code, improving performance. PR-URL: https://github.com/nodejs/node/pull/4361 Reviewed-By:James M Snell <jasnell@gmail.com> Reviewed-By:
Brian White <mscdex@mscdex.net>
parent
0ea3899c
Please register or sign in to comment