Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upcrypto: move _scrypt call out of handleError funct #28318
Conversation
nodejs-github-bot
added
the
crypto
label
Jun 20, 2019
This comment has been minimized.
This comment has been minimized.
ZYSzys
approved these changes
Jun 20, 2019
benjamingr
approved these changes
Jun 20, 2019
bnoordhuis
requested changes
Jun 20, 2019
|
If you're going to make this change, you should also make it to pbkdf2.js, random.js and (possibly) keygen.js, otherwise you're introducing style inconsistencies between the files in lib/internal/crypto. |
This comment has been minimized.
This comment has been minimized.
Ah I see, let me take a look and update them too. Thanks |
This comment has been minimized.
This comment has been minimized.
addaleax
approved these changes
Jun 20, 2019
bnoordhuis
approved these changes
Jun 21, 2019
|
LGTM although it drops the D in DRY. |
Trott
approved these changes
Jun 21, 2019
Trott
added
the
author ready
label
Jun 21, 2019
This comment has been minimized.
This comment has been minimized.
tniessen
approved these changes
Jun 21, 2019
This comment has been minimized.
This comment has been minimized.
jasnell
approved these changes
Jun 23, 2019
This comment has been minimized.
This comment has been minimized.
danbev
closed this
Jun 24, 2019
danbev
deleted the
danbev:scrypt_handleError
branch
Jun 24, 2019
danbev
added a commit
that referenced
this pull request
Jun 24, 2019
danbev
added a commit
that referenced
this pull request
Jun 24, 2019
danbev
added a commit
that referenced
this pull request
Jun 24, 2019
danbev
added a commit
that referenced
this pull request
Jun 24, 2019
jshricarde
added a commit
to jshricarde/node
that referenced
this pull request
Jun 25, 2019
jshricarde
added a commit
to jshricarde/node
that referenced
this pull request
Jun 25, 2019
jshricarde
added a commit
to jshricarde/node
that referenced
this pull request
Jun 25, 2019
jshricarde
added a commit
to jshricarde/node
that referenced
this pull request
Jun 25, 2019
targos
added a commit
that referenced
this pull request
Jul 2, 2019
targos
added a commit
that referenced
this pull request
Jul 2, 2019
targos
added a commit
that referenced
this pull request
Jul 2, 2019
targos
added a commit
that referenced
this pull request
Jul 2, 2019
This was referenced Jul 3, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
danbev commentedJun 20, 2019
This commit moves the
_scryptfunction call out of thehandleErrorfunction, which now only takes in an error object as its parameter.
The motivation for this is to hopefully improve readability as it was
not clear to me the first time I stepped through the code where the
actual call to
_scryptwas.Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes