We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b392a94 commit c829552Copy full SHA for c829552
test/parallel/test-dgram-send-bad-arguments.js
@@ -78,15 +78,16 @@ function checkArgs(connected) {
78
}
79
);
80
81
+ const longArray = [1, 2, 3, 4, 5, 6, 7, 8];
82
for (const input of ['hello',
83
Buffer.from('hello'),
84
Buffer.from('hello world').subarray(0, 5),
85
Buffer.from('hello world').subarray(4, 9),
86
Buffer.from('hello world').subarray(6),
87
new Uint8Array([1, 2, 3, 4, 5]),
- new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]).slice(0, 5),
88
- new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]).slice(2, 7),
89
- new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]).slice(3),
+ new Uint8Array(longArray).subarray(0, 5),
+ new Uint8Array(longArray).subarray(2, 7),
90
+ new Uint8Array(longArray).subarray(3),
91
new DataView(new ArrayBuffer(5), 0),
92
new DataView(new ArrayBuffer(6), 1),
93
new DataView(new ArrayBuffer(7), 1, 5)]) {
0 commit comments