summaryrefslogtreecommitdiff
path: root/test/parallel/test-buffer-zero-fill-reset.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-buffer-zero-fill-reset.js')
-rw-r--r--test/parallel/test-buffer-zero-fill-reset.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-buffer-zero-fill-reset.js b/test/parallel/test-buffer-zero-fill-reset.js
index 56fb77818a..3076b25ce6 100644
--- a/test/parallel/test-buffer-zero-fill-reset.js
+++ b/test/parallel/test-buffer-zero-fill-reset.js
@@ -13,7 +13,7 @@ function testUint8Array(ui) {
for (let i = 0; i < 100; i++) {
- new Buffer(0);
+ Buffer.alloc(0);
const ui = new Uint8Array(65);
assert.ok(testUint8Array(ui), 'Uint8Array is not zero-filled');
}