Skip to content

Commit 55a1d94

Browse files
committed
fixup
1 parent 3b9e2be commit 55a1d94

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

test/parallel/test-stringbytes-external-at-max.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,5 @@ try {
1818

1919
const buf = new Buffer(kStringMaxLength);
2020

21-
var maxString = buf.toString();
21+
const maxString = buf.toString('binary');
2222
assert.equal(maxString.length, kStringMaxLength);
23-
// Free the memory early instead of at the end of the next assignment
24-
maxString = undefined;
25-
26-
maxString = buf.toString('binary');
27-
assert.equal(maxString.length, kStringMaxLength);
28-
maxString = undefined;

0 commit comments

Comments
 (0)