diff --git a/test/parallel/test-dgram-send-bad-arguments.js b/test/parallel/test-dgram-send-bad-arguments.js index 4a62166eb33de99..bb93520a51c5782 100644 --- a/test/parallel/test-dgram-send-bad-arguments.js +++ b/test/parallel/test-dgram-send-bad-arguments.js @@ -84,9 +84,9 @@ function checkArgs(connected) { Buffer.from('hello world').subarray(4, 9), Buffer.from('hello world').subarray(6), new Uint8Array([1, 2, 3, 4, 5]), - new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]).slice(0, 5), - new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]).slice(2, 7), - new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]).slice(3), + new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]).subarray(0, 5), + new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]).subarray(2, 7), + new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]).subarray(3), new DataView(new ArrayBuffer(5), 0), new DataView(new ArrayBuffer(6), 1), new DataView(new ArrayBuffer(7), 1, 5)]) {