diff options
author | Roman Reiss <me@silverwind.io> | 2015-05-29 19:35:43 +0200 |
---|---|---|
committer | Roman Reiss <me@silverwind.io> | 2015-06-11 20:24:44 +0200 |
commit | b5b8ff117c8581945d0c8c3a4b18d53f4b33b86f (patch) | |
tree | 9db9a4b3ee06b8210c71c3aef87f9307a5beecd5 /lib/crypto.js | |
parent | ff8202c6f475973c8674e61c794b77e1b072144b (diff) | |
download | nodejs-b5b8ff117c8581945d0c8c3a4b18d53f4b33b86f.tar.gz nodejs-b5b8ff117c8581945d0c8c3a4b18d53f4b33b86f.tar.bz2 nodejs-b5b8ff117c8581945d0c8c3a4b18d53f4b33b86f.zip |
lib: don't use global Buffer
Port of https://github.com/joyent/node/pull/8603
The race condition present in the original PR didn't occur, so no
workaround was needed.
PR-URL: https://github.com/nodejs/io.js/pull/1794
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'lib/crypto.js')
-rw-r--r-- | lib/crypto.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/crypto.js b/lib/crypto.js index d0ecef42a..510e8bfbd 100644 --- a/lib/crypto.js +++ b/lib/crypto.js @@ -15,6 +15,7 @@ try { throw new Error('node.js not compiled with openssl crypto support.'); } +const Buffer = require('buffer').Buffer; const constants = require('constants'); const stream = require('stream'); const util = require('util'); |