From 55a1d94ac2f65bf4780e3df2b8d07a7c83ba351a Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 9 Oct 2015 15:52:09 -0700 Subject: [PATCH] fixup --- test/parallel/test-stringbytes-external-at-max.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/test/parallel/test-stringbytes-external-at-max.js b/test/parallel/test-stringbytes-external-at-max.js index ffee40793d7da2..4a0efc39e34441 100644 --- a/test/parallel/test-stringbytes-external-at-max.js +++ b/test/parallel/test-stringbytes-external-at-max.js @@ -18,11 +18,5 @@ try { const buf = new Buffer(kStringMaxLength); -var maxString = buf.toString(); +const maxString = buf.toString('binary'); assert.equal(maxString.length, kStringMaxLength); -// Free the memory early instead of at the end of the next assignment -maxString = undefined; - -maxString = buf.toString('binary'); -assert.equal(maxString.length, kStringMaxLength); -maxString = undefined;