crypto: migrate crypto sign to internal/errors#15757
crypto: migrate crypto sign to internal/errors#15757jasnell wants to merge 2 commits intonodejs:masterfrom
Conversation
lib/internal/crypto/sig.js
Outdated
There was a problem hiding this comment.
Nit: toBuf() seems redundant here.
lib/internal/crypto/sig.js
Outdated
There was a problem hiding this comment.
Nit: maybe it's better to move this after the instanceof check to only run it once when Sign is called without new.
lib/internal/crypto/sig.js
Outdated
|
@nodejs/tsc ... ping? Please review? |
joyeecheung
left a comment
There was a problem hiding this comment.
LGTM. Next step would be to migrate SignBase::CheckThrow...
joyeecheung
left a comment
There was a problem hiding this comment.
Checked the wrong box before
|
Also after this patch, |
|
re: |
f143a84 to
2579276
Compare
|
@nodejs/tsc ... need at least one more TSC signoff on this please |
Improve argument type checking and move into js, use internal/errors
2579276 to
cee5974
Compare
|
CI was a bit too red, trying again: https://ci.nodejs.org/job/node-test-commit/13401/ |
Improve argument type checking and move into js, use internal/errors PR-URL: #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>
|
Landed in b8bc652 |
Improve argument type checking and move into js, use internal/errors PR-URL: nodejs/node#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>
Improve argument type checking and move into js, use internal/errors PR-URL: nodejs/node#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>
Improve argument type checking and move into js, use internal/errors
Improve tests.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
crypto