summaryrefslogtreecommitdiff
path: root/test/parallel/test-buffer-failed-alloc-typed-arrays.js
diff options
context:
space:
mode:
authorMichal Hynek <michal.hynek@allocadia.com>2018-10-12 09:20:12 -0700
committerAnna Henningsen <anna@addaleax.net>2018-10-14 23:42:30 +0200
commitfd230c131deb049ea027fda87bc20b24efd6a4f5 (patch)
tree39799b8f3c857a6bac35e8afbe2af7892782ee08 /test/parallel/test-buffer-failed-alloc-typed-arrays.js
parent5799f41c93b354c3529e2ab4259141a1c88cac37 (diff)
downloadandroid-node-v8-fd230c131deb049ea027fda87bc20b24efd6a4f5.tar.gz
android-node-v8-fd230c131deb049ea027fda87bc20b24efd6a4f5.tar.bz2
android-node-v8-fd230c131deb049ea027fda87bc20b24efd6a4f5.zip
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>
Diffstat (limited to 'test/parallel/test-buffer-failed-alloc-typed-arrays.js')
-rw-r--r--test/parallel/test-buffer-failed-alloc-typed-arrays.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-buffer-failed-alloc-typed-arrays.js b/test/parallel/test-buffer-failed-alloc-typed-arrays.js
index fd9c2744e5..59cc7bc8d9 100644
--- a/test/parallel/test-buffer-failed-alloc-typed-arrays.js
+++ b/test/parallel/test-buffer-failed-alloc-typed-arrays.js
@@ -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);
}
}