diff options
author | Rich Trott <rtrott@gmail.com> | 2016-01-01 17:37:10 -0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-01-04 14:20:03 -0800 |
commit | c14726cefc9cb5bcb874900083ea7d022cee92fe (patch) | |
tree | 2b71a3dde822cbec8894f0a523ef99ae058e38ef /test/parallel/test-promises-unhandled-rejections.js | |
parent | 063c9f68865e1c5049fd4f29a547cad1b6fa7642 (diff) | |
download | android-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.js | 5 |
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; }); |