| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
it does not belong to Streams but Crypto
Change the default encoding from latin1 to utf8 and extend the test-crypto tests.
|
|
||
| if (!this._options || !this._options.defaultEncoding) { | ||
| this._writableState.defaultEncoding = crypto.DEFAULT_ENCODING; | ||
| } |
There was a problem hiding this comment.
Seems to use defaultEncoding of options in the following way?
if (this._options && this._options.defaultEncoding) {
this._writableState.defaultEncoding = this._options.defaultEncoding;
} else {
this._writableState.defaultEncoding = crypto.DEFAULT_ENCODING;
}
Sorry, something went wrong.
| crypto.createHash('sha1').update({foo: 'bar'}); | ||
| }, /buffer/); | ||
|
|
||
|
|
There was a problem hiding this comment.
This change seems not necessary :)
Sorry, something went wrong.
|
By the way, this seems duplicated with #8611 :( |
Sorry, something went wrong.
|
I’m labelling this as blocked then, we can take a look again once #8611 lands :) |
Sorry, something went wrong.
| const stream = require('stream'); | ||
| const util = require('util'); | ||
| const LazyTransform = require('internal/streams/lazy_transform'); | ||
| const LazyTransform = require('internal/crypto/lazy_transform'); |
There was a problem hiding this comment.
I think this file should probably still be in /streams?
Sorry, something went wrong.
There was a problem hiding this comment.
The lazy_transform internal class is only used by the crypto module. I discussed this with @zvictor at the code and learn this last weekend and we went through and made sure. I'm happy with moving it in order to make the relationship between this class and the crypto module clear.
Sorry, something went wrong.
|
We knew there would be some duplicates coming out of the code and learn so please bear with us @zvictor! I really appreciate you taking the time to make these changes. If this particular PR doesn't land because of the duplicate, then there are still plenty of other areas to jump in! :-) |
Sorry, something went wrong.
|
No problem @jasnell, it was a nice experience anyway. |
Sorry, something went wrong.
|
It's very useful and very appreciated! I hope you stick around and find On Wednesday, September 21, 2016, zVictor notifications@github.com wrote:
|
Sorry, something went wrong.
|
I'm closing this because it's been inactive for quite a while. Feel free to reopen or ping a collaborator to get it reopened if needed. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Checklist
Affected core subsystem(s)
crypto
Description of change
depends on #8611.