node/test/fixtures/print-chars-from-buffer.js
cjihrig dd9aefde69
test: use const for all require() calls
PR-URL: https://github.com/nodejs/node/pull/10550
Reviewed-By: Rich Trott <rtrott@gmail.com>
2017-01-30 12:08:31 -05:00

10 lines
174 B
JavaScript

const assert = require('assert');
var n = parseInt(process.argv[2]);
var b = Buffer.allocUnsafe(n);
for (var i = 0; i < n; i++) {
b[i] = 100;
}
process.stdout.write(b);