Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup
  • Loading branch information
Trott committed Oct 9, 2015
commit 55a1d94ac2f65bf4780e3df2b8d07a7c83ba351a
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;