test: removed unused variable
Removed an unused variable in test-buffer-failed-alloc-typed-arrays.js. PR-URL: https://github.com/nodejs/node/pull/23481 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
parent
5799f41c93
commit
fd230c131d
@ -26,7 +26,7 @@ for (const allocator of allocators) {
|
||||
// These allocations are known to fail. If they do,
|
||||
// Uint32Array should still produce a zeroed out result.
|
||||
allocator(size);
|
||||
} catch (e) {
|
||||
} catch {
|
||||
assert.deepStrictEqual(new Uint32Array(10), zeroArray);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user