Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Oct 9, 2015
1 parent 3b9e2be commit 55a1d94
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions test/parallel/test-stringbytes-external-at-max.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 55a1d94

Please sign in to comment.