Skip to content

Commit 09de49a

Browse files
committed
lib: remove unused join from internal/util
1 parent 9602664 commit 09de49a

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

lib/internal/util.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -385,21 +385,6 @@ function promisify(original) {
385385

386386
promisify.custom = kCustomPromisifiedSymbol;
387387

388-
// The built-in Array#join is slower in v8 6.0
389-
function join(output, separator) {
390-
let str = '';
391-
if (output.length !== 0) {
392-
const lastIndex = output.length - 1;
393-
for (let i = 0; i < lastIndex; i++) {
394-
// It is faster not to use a template string here
395-
str += output[i];
396-
str += separator;
397-
}
398-
str += output[lastIndex];
399-
}
400-
return str;
401-
}
402-
403388
// As of V8 6.6, depending on the size of the array, this is anywhere
404389
// between 1.5-10x faster than the two-arg version of Array#splice()
405390
function spliceOne(list, index) {
@@ -579,7 +564,6 @@ module.exports = {
579564
getSystemErrorName,
580565
isError,
581566
isInsideNodeModules,
582-
join,
583567
lazyDOMException,
584568
lazyDOMExceptionClass,
585569
normalizeEncoding,

0 commit comments

Comments
 (0)