summaryrefslogtreecommitdiff
path: root/test/parallel/test-buffer-iterator.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-01-26 16:47:10 -0800
committerRich Trott <rtrott@gmail.com>2016-01-28 15:13:24 -0800
commit9429685d48d5be80587ebc481255616b84db2615 (patch)
tree3965cab8752a895aaa74877c06970033587e7cd0 /test/parallel/test-buffer-iterator.js
parent2ac47f87a4415659cd5df4f09c9190c80b023b6a (diff)
downloadandroid-node-v8-9429685d48d5be80587ebc481255616b84db2615.tar.gz
android-node-v8-9429685d48d5be80587ebc481255616b84db2615.tar.bz2
android-node-v8-9429685d48d5be80587ebc481255616b84db2615.zip
test,buffer: refactor redeclarations
Many variables in the buffer tests are redeclared. Change them so that they are scoped appropriately. PR-URL: https://github.com/nodejs/node/pull/4893 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-buffer-iterator.js')
-rw-r--r--test/parallel/test-buffer-iterator.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-buffer-iterator.js b/test/parallel/test-buffer-iterator.js
index ad135a9113..06bf826a91 100644
--- a/test/parallel/test-buffer-iterator.js
+++ b/test/parallel/test-buffer-iterator.js
@@ -50,7 +50,7 @@ assert.deepEqual(arr, [0, 1, 2, 3, 4]);
arr = [];
-for (var b of buffer.entries())
+for (b of buffer.entries())
arr.push(b);
assert.deepEqual(arr, [