diff options
Diffstat (limited to 'test/parallel/test-crypto-cipher-decipher.js')
-rw-r--r-- | test/parallel/test-crypto-cipher-decipher.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-crypto-cipher-decipher.js b/test/parallel/test-crypto-cipher-decipher.js index 5f867739ab..aeebc1c468 100644 --- a/test/parallel/test-crypto-cipher-decipher.js +++ b/test/parallel/test-crypto-cipher-decipher.js @@ -67,10 +67,10 @@ function testCipher2(key) { } testCipher1('MySecretKey123'); -testCipher1(new Buffer('MySecretKey123')); +testCipher1(Buffer.from('MySecretKey123')); testCipher2('0123456789abcdef'); -testCipher2(new Buffer('0123456789abcdef')); +testCipher2(Buffer.from('0123456789abcdef')); // Base64 padding regression test, see #4837. (function() { |