From 5479b3b7346041138b1942962d298c0e227028aa Mon Sep 17 00:00:00 2001 From: naris93 Date: Fri, 12 Oct 2018 10:47:42 -0700 Subject: [PATCH] test: modernize test-crypto-domain --- test/parallel/test-crypto-domain.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-crypto-domain.js b/test/parallel/test-crypto-domain.js index 348b55b09d4e17..62e2be4c0f39c2 100644 --- a/test/parallel/test-crypto-domain.js +++ b/test/parallel/test-crypto-domain.js @@ -28,7 +28,7 @@ const assert = require('assert'); const crypto = require('crypto'); const domain = require('domain'); -function test(fn) { +const test = (fn) => { const ex = new Error('BAM'); const d = domain.create(); d.on('error', common.mustCall(function(err) { @@ -38,7 +38,7 @@ function test(fn) { throw ex; }); d.run(cb); -} +}; test(function(cb) { crypto.pbkdf2('password', 'salt', 1, 8, cb);