diff options
author | James M Snell <jasnell@gmail.com> | 2017-10-03 07:28:26 -0700 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-10-23 20:54:39 -0700 |
commit | b8bc652869683cfb9a22fc4a1b8780d376fff429 (patch) | |
tree | 3dab2931d34980b56880d046c7622a267132432f /test/parallel/test-crypto.js | |
parent | 7124b466d9c10e12b3bd9a59910032e033f35493 (diff) | |
download | android-node-v8-b8bc652869683cfb9a22fc4a1b8780d376fff429.tar.gz android-node-v8-b8bc652869683cfb9a22fc4a1b8780d376fff429.tar.bz2 android-node-v8-b8bc652869683cfb9a22fc4a1b8780d376fff429.zip |
crypto: migrate crypto sign to internal/errors
Improve argument type checking and move into js, use internal/errors
PR-URL: https://github.com/nodejs/node/pull/15757
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'test/parallel/test-crypto.js')
-rw-r--r-- | test/parallel/test-crypto.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/test/parallel/test-crypto.js b/test/parallel/test-crypto.js index d501991dd2..76164c683f 100644 --- a/test/parallel/test-crypto.js +++ b/test/parallel/test-crypto.js @@ -202,28 +202,6 @@ assert.throws(function() { }); assert.throws(function() { - crypto.createSign('SHA1').update('0', 'hex'); -}, (err) => { - // Throws TypeError, so there is no opensslErrorStack property. - if ((err instanceof Error) && - /^TypeError: Bad input string$/.test(err) && - err.opensslErrorStack === undefined) { - return true; - } -}); - -assert.throws(function() { - crypto.createVerify('SHA1').update('0', 'hex'); -}, (err) => { - // Throws TypeError, so there is no opensslErrorStack property. - if ((err instanceof Error) && - /^TypeError: Bad input string$/.test(err) && - err.opensslErrorStack === undefined) { - return true; - } -}); - -assert.throws(function() { const priv = [ '-----BEGIN RSA PRIVATE KEY-----', 'MIGrAgEAAiEA+3z+1QNF2/unumadiwEr+C5vfhezsb3hp4jAnCNRpPcCAwEAAQIgQNriSQK4', |