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:
Michal Hynek 2018-10-12 09:20:12 -07:00 committed by Anna Henningsen
parent 5799f41c93
commit fd230c131d
No known key found for this signature in database
GPG Key ID: 9C63F3A6CD2AD8F9

View File

@ -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);
}
}