summaryrefslogtreecommitdiff
path: root/test/fixtures/print-chars-from-buffer.js
blob: 94fce08889f435a0e1102a37a5ef88d4317c629d (plain)
1
2
3
4
5
6
7
8
9
require("../common");
Buffer = require("buffer").Buffer;

var n = parseInt(process.argv[2]);

b = new Buffer(n);
for (var i = 0; i < n; i++) { b[i] = 100; }

process.stdout.write(b);