summaryrefslogtreecommitdiff
path: root/test/parallel/test-promises-unhandled-rejections.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-01-01 17:37:10 -0800
committerRich Trott <rtrott@gmail.com>2016-01-04 14:20:03 -0800
commitc14726cefc9cb5bcb874900083ea7d022cee92fe (patch)
tree2b71a3dde822cbec8894f0a523ef99ae058e38ef /test/parallel/test-promises-unhandled-rejections.js
parent063c9f68865e1c5049fd4f29a547cad1b6fa7642 (diff)
downloadandroid-node-v8-c14726cefc9cb5bcb874900083ea7d022cee92fe.tar.gz
android-node-v8-c14726cefc9cb5bcb874900083ea7d022cee92fe.tar.bz2
android-node-v8-c14726cefc9cb5bcb874900083ea7d022cee92fe.zip
test: remove unused vars from parallel tests
Remove all remaining unused variables from tests in test/parallel. PR-URL: https://github.com/nodejs/node/pull/4511 Reviewed-By: James M Snell<jasnell@gmail.com> Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Diffstat (limited to 'test/parallel/test-promises-unhandled-rejections.js')
-rw-r--r--test/parallel/test-promises-unhandled-rejections.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/parallel/test-promises-unhandled-rejections.js b/test/parallel/test-promises-unhandled-rejections.js
index e229bada3a..5e7739daa5 100644
--- a/test/parallel/test-promises-unhandled-rejections.js
+++ b/test/parallel/test-promises-unhandled-rejections.js
@@ -185,12 +185,11 @@ asyncTest('When re-throwing new errors in a promise catch, only the' +
asyncTest('Test params of unhandledRejection for a synchronously-rejected' +
'promise', function(done) {
var e = new Error();
- var e2 = new Error();
onUnhandledSucceed(done, function(reason, promise) {
assert.strictEqual(e, reason);
assert.strictEqual(promise, promise);
});
- var promise = Promise.reject(e);
+ Promise.reject(e);
});
asyncTest('When re-throwing new errors in a promise catch, only the ' +
@@ -629,7 +628,7 @@ asyncTest('Promise unhandledRejection handler does not interfere with domain' +
assert.strictEqual(domainReceivedError, domainError);
d.dispose();
});
- var a = Promise.reject(e);
+ Promise.reject(e);
process.nextTick(function() {
throw domainError;
});