tls_wrap: clear errors on return
Adopt MarkPopErrorOnReturn
from node_crypto.cc
, and use it to
clear errors after SSL_read
/SSL_write
/SSL_shutdown
functions.
See: https://github.com/nodejs/node/issues/4485 PR-URL: https://github.com/nodejs/node/pull/4515 Reviewed-By: Ben Noordhuis info@bnoordhuis.nl
[ This is just a backport cc @TheAlphaNerd ]