crypto: LazyTransform on properties, not methods
authorisaacs <i@izs.me>
Mon, 8 Apr 2013 15:43:20 +0000 (08:43 -0700)
committerFedor Indutny <fedor.indutny@gmail.com>
Sun, 21 Apr 2013 13:33:10 +0000 (09:33 -0400)
commit4bf1d1007fbd249d1d07b662278a5a34c6be12fd
treec18161401dd3dd47d054c352085e2752020400d5
parentc4379a5554e421c55a38baaee4775b5c13a288d3
crypto: LazyTransform on properties, not methods

It needs to apply the Transform class when the _readableState,
_writableState, or _transformState properties are accessed,
otherwise things like setEncoding and on('data') don't work
properly.

Also, the methods wrappers are no longer needed, since they're only
problematic because they access the undefined properties.
lib/crypto.js
test/simple/test-crypto-hash-stream-pipe.js [new file with mode: 0644]