We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8009513 commit 610164dCopy full SHA for 610164d
test/parallel/test-writeuint.js
@@ -150,10 +150,10 @@ function testUint(clazz) {
150
// Test 0 to 5 bytes.
151
for (let i = 0; i <= 5; i++) {
152
const errmsg = `byteLength: ${i}`;
153
- assert.throws(function() {
+ assert.throws(() => {
154
data.writeUIntBE(val, 0, i);
155
}, /"value" argument is out of bounds/, errmsg);
156
157
data.writeUIntLE(val, 0, i);
158
159
val *= 0x100;
0 commit comments