summaryrefslogtreecommitdiff
path: root/test/parallel/test-crypto-from-binary.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-crypto-from-binary.js')
-rw-r--r--test/parallel/test-crypto-from-binary.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-crypto-from-binary.js b/test/parallel/test-crypto-from-binary.js
index b2782e04f2..11617be1cb 100644
--- a/test/parallel/test-crypto-from-binary.js
+++ b/test/parallel/test-crypto-from-binary.js
@@ -24,7 +24,7 @@ while (ucs2_control.length <= EXTERN_APEX) {
// check resultant buffer and output string
-var b = new Buffer(ucs2_control + ucs2_control, 'ucs2');
+var b = Buffer.from(ucs2_control + ucs2_control, 'ucs2');
//
// Test updating from birant data